wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 331
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: 331
Hi,

thanks fro reply.
I prefer javascript . Any idea?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

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: 331
Thanks

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

But for a date?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp Validation
 
Similar Threads
when i retrive data from access it showing empty page in tomcat
parent child relation ship
Has anyone seen this error before??
jQuery not working on page
CSS is not coming into effect