• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp Validation

 
Isaac Durá
Ranch Hand
Posts: 859
2
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 157
1
Android Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Durá
Ranch Hand
Posts: 859
2
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

thanks fro reply.
I prefer javascript . Any idea?

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Isaac Durá
Ranch Hand
Posts: 859
2
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks

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

But for a date?

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic