This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Struts 2 : Does s:reset is really capable for reset ?

Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have requirement to display a form page with 5 text fields with reset and submit button. Now reset is doing its job normally, but after validation fails, it fails to reset.

Now, this is very logical, as after validation fails jsp page come back with old enter data, which is default data for text field now, and reset jut reset all the values to its default data.

But my clients are not happy with it, they have following requirement

1) I can't use JavaScript in project(some security issue ).
2) After validation fails, data in text field should come back with old invalid data.
3) When i press reset,anytime, it should always clear all fields.

Any one to helpjavascript:emoticon(''); ?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic