This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android 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: 560
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: 560
Hi,

thanks fro reply.
I prefer javascript . Any idea?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63052
    
  69

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

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

But for a date?

Thanks
 
 
subject: Jsp Validation
 
It's not a secret anymore!