File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts 2 : Does s:reset  is really capable for reset ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 : Does s:reset  is really capable for reset ?" Watch "Struts 2 : Does s:reset  is really capable for reset ?" New topic
Author

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

Praveen Kumar Singh
Ranch Hand

Joined: Mar 04, 2009
Posts: 43
Hi

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(''); ?


Praveen
SCJP, SCWCD, SOA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 : Does s:reset is really capable for reset ?
 
Similar Threads
Reset of JTextField data
Clear and Reset Functionality in struts
Retaining List Values After Validating - Is there a way?
How to validate text fields after enter key press
Struts 1.1 question (Might not be an easy one)