This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes handle getParameter() with no value in Param tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "handle getParameter() with no value in Param tag" Watch "handle getParameter() with no value in Param tag" New topic
Author

handle getParameter() with no value in Param tag

Rajeev Kashyap
Greenhorn

Joined: Sep 07, 2004
Posts: 19
getParameter methods will correctly handle PARAM tags which have name properties, but do not have a value property
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 804
Hi, Rajeev -

Are you asking a question, or posting perhaps a response to someone else's question?


Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Rajeev Kashyap
Greenhorn

Joined: Sep 07, 2004
Posts: 19
Sorry,
I wanted to ask
How getParameter methods will correctly handle PARAM tags which have name properties, but do not have a value property.
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 804
If you have a parameter name but no value, it will return null. (Be sure to test for null after getting the parameter and before using the String you store the parameter value in!)
 
Consider Paul's rocket mass heater.
 
subject: handle getParameter() with no value in Param tag
 
Similar Threads
Passing Parameters to Applets
Passing data from Applet to the Apache server
JSP Parameters and HTML Form Values
Need help >>>
About SvltRequest.getParameter(..) Can this be?