File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Jsp Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp Validation" Watch "Jsp Validation" New topic
Author

Jsp Validation

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 336
Hi,

I want validate my text boxes from my jsp or servlet, could ou give me any example code, please?



Many Thanks,
harshvardhan ojha
Ranch Hand

Joined: Jul 26, 2007
Posts: 157
    
    1

Hi Angus, i think you can use javascript for jsp side validation and regex pattern for server side validation. What code are you looking for?
Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 336
Hi,

thanks fro reply.
I prefer javascript . Any idea?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61084
    
  66

Regardless of whether you perform client-side validation or not, you must also always validate n the server. You can never be sure that client-side validation has taken place.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 336
Thanks

and what way could I validate a date. For example for an string is

But for a date?

Thanks
 
Don't get me started about those stupid light bulbs.
 
subject: Jsp Validation