File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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!)
 
jQuery in Action, 2nd edition
 
subject: handle getParameter() with no value in Param tag
 
Similar Threads
Passing data from Applet to the Apache server
JSP Parameters and HTML Form Values
Need help >>>
Passing Parameters to Applets
About SvltRequest.getParameter(..) Can this be?