• Post Reply Bookmark Topic Watch Topic
  • New Topic

handle getParameter() with no value in Param tag

 
Rajeev Kashyap
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getParameter methods will correctly handle PARAM tags which have name properties, but do not have a value property
 
Jeff Bosch
Ranch Hand
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Rajeev -

Are you asking a question, or posting perhaps a response to someone else's question?
 
Rajeev Kashyap
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!)
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!