Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Validation # 4

 
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
 
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.
 
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic