• Post Reply Bookmark Topic Watch Topic
  • New Topic

handle getParameter() with no value in Param tag  RSS feed

 
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!)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!