|
-
September 18th, 2000, 07:06 AM
#1
how to test an integer?
Hi,
I have a textbox in html. I am using a post method in it. When the value is recieved by the servlet, I want to test whether the value recieved from the textbox is a number or not.
Integer.parseInt(request.getParameter("textbex1"))
would give an error if the user has not entered a valid number.
Does anybody know the solution?
I will be grateful for the solution
Thanks in advance.
Monika
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|