aspose 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 Spring in Action this week in the Spring 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Clearing of Struts forms on reset