This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servelts - 4a : ServletData question

 
Jeremy Medford
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'd like to verify if there are any Parameters in servletData being passed into a doAction method. Is it just a matter of checking what getParameter or getParameters returns? Do these return NULL if they don't contain the Parameter(s)?


Thanks,

Jeremy
 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeremy, it's been a long time since I did these assignments, but I believe the answer to your first question is yes, but you have to do more than just "check" what is in the parameter. And I think the answer to the second question is also yes, because the parameters are strings, so if they aren't there then they would be null.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic