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 Clearing of Struts forms on reset   Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Clearing of Struts forms on reset   " Watch "Clearing of Struts forms on reset   " New topic
Author

Clearing of Struts forms on reset

sushil bharwani
Greenhorn

Joined: Mar 02, 2006
Posts: 26
Hi,

can anybody help me with struts forms reset button. I wants all the fields to be cleared on pressing reset.


What i do is i fill up the form submit it if it has errors it shows me the html errors now i click on the reset button but the form fields values are not cleared i even wrote a javascript to clear them up but it was of no help.Please tell if anybody has some suggestions regarding it.


Thanks and regards,

Sushi
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Deja vu? See the post by Gaurav Chhabras. It seems like you could do this in JavaScript as well..I am not sure why that did not work for you.

- Brent
 
Don't get me started about those stupid light bulbs.
 
subject: Clearing of Struts forms on reset
 
Similar Threads
Clear and Reset Functionality in struts
clearing HTML form fields after return from struts validation with errors
Error message
Reset button in not working
Using struts and complex forms