aspose 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
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: 357
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: 357
Hi,

thanks fro reply.
I prefer javascript . Any idea?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61224
    
  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: 357
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