-
getParameter method returns null?
Hi:
In my HTML file I have the following arguements in <PARAM> tags:
<PARAM NAME="netAddress" VALUE="www.mysite.com">
<PARAM NAME="port" VALUE="5000">
<PARAM NAME="timeout" VALUE="60000">
In the init() method of my applet I try to retrieve these values like
so:
internetAddress = getParameter("netAddress");
System.out.println("netAddress = " + internetAddress);
portNumber = Integer.parseInt(getParameter("port"));
System.out.println("portNumber = " + portNumber);
timeoutPeriod = Integer.parseInt(getParameter("timeout"));
System.out.println("timeoutPeriod = " + timeoutPeriod);
The peculiar thing is the System.out records:
netAddress = null
portNumber = 5000
timeoutPeriod = 60000
Why does it retrieve the last two but null for netAddress?
Alan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks