Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alternative for Reset attribute of the struts form

 
Vijaya Ragavan
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any alternative for the reset attribute of the struts form ?

Also, What is the difference between the action and onsubmit attributes?
 
Joe Ess
Bartender
Posts: 9298
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see a "reset" attribute. There is an "onreset" attribute which is just a passthrough for the JavaScript event of the same name.
As for "action", the Struts documentation says "Set action name to submit to, without .action suffix". The "onsubmit" attribute is again, a passthrough for the JavaScript event of the same name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic