File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Alternative for Reset attribute of the struts form 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 "Alternative for Reset attribute of the struts form" Watch "Alternative for Reset attribute of the struts form" New topic
Author

Alternative for Reset attribute of the struts form

Vijaya Ragavan
Greenhorn

Joined: Dec 02, 2013
Posts: 25
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

Joined: Oct 29, 2001
Posts: 8927
    
    9

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
jQuery in Action, 2nd edition
 
subject: Alternative for Reset attribute of the struts form