Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Server side validations  RSS feed

 
lokesh pushpa
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have to do check number validation in serverside. Can you please help me on this issue.
Requirement: I have one Check Number filed. It will accept only integer values. i have to implement server side validaitons for this.

I need stept by step process for this .... Please any body help me on this.....
 
Pongsakorn Semsuwan
Ranch Hand
Posts: 34
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just did a quick search and found this
http://stackoverflow.com/questions/1102891/how-to-check-a-string-is-a-numeric-type-in-java
and
http://www.coderanch.com/t/401142/java/java/check-if-String-value-numeric

So basically, in your Servlet, you just get your checkNo variable from jsp and then call your method to validate it

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!