File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clearing of Struts forms on reset

 
sushil bharwani
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic