Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp Validation

 
Isaac Ferguson
Ranch Hand
Posts: 841
1
  • 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 Ferguson
Ranch Hand
Posts: 841
1
  • 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: 64833
86
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 Ferguson
Ranch Hand
Posts: 841
1
  • 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