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

Validation # 4

 
omkar patkar
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have one doubt in struts validation. i have used, "required" rule in my validation. And i am using client side validation of Struts. When i enter spaces in a particular field at and when i click on submit.... the alert window pops-up ....saying that particular field is required. After clicking on OK, the focus is maintained on that field. I want the field to get cleared, or atleast the entered text must get selected. Is their any facility in struts 1.2.8 to achieve this ? Thanks in advance.

Thanks and regards
Omkar Patkar
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no "out of the box" facility to do this. One option would be to simply write your own client-side validation code outside of the validation framework, or possibly even along-side the framework code. If it's really important to you to use the validation framework, I'd suggest downloading the source code and seeing if you can make an extension to do what you want to do.
 
omkar patkar
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm .... thanks Merill.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic