This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes int parameter validation, ( options??) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "int parameter validation, ( options??)" Watch "int parameter validation, ( options??)" New topic
Author

int parameter validation, ( options??)

Zkr Ryz
Ranch Hand

Joined: Jan 04, 2001
Posts: 187
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).]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: int parameter validation, ( options??)
 
Similar Threads
try/catch best practice
need help urgentl like yesterdayy
To Hex String and back...
adding more then one element to the vector
Int = Char