This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alternative for Reset attribute of the struts form

 
Vijaya Ragavan
Greenhorn
Posts: 25
  • 0
  • 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: 9214
9
Linux Mac OS X Windows
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic