This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

int parameter validation, ( options??)

 
Zkr Ryz
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
I would like to hear your opinions on the next topic.
When I recive a parameter in jsp that is an int, which do you think is the correct way to validate the parameter was sended, or the parameter is an int , etc.
currently I use:

Other is

But I dont really think that try / catch should be used.
which other approach do you know.
Thanks in advance for the answers...
)

[This message has been edited by Zkr Ryz (edited June 27, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic