jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Clearing of Struts forms on reset   " Watch "Clearing of Struts forms on reset   " New topic

Clearing of Struts forms on reset

sushil bharwani

Joined: Mar 02, 2006
Posts: 26

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,

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
It's not a secret anymore!