Struts 2 : Does s:reset is really capable for reset ?
Praveen Kumar Singh
posted 7 years ago
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
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.