aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 8708
    
    6

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Alternative for Reset attribute of the struts form
 
Similar Threads
populated form fields
Setting up form data
How to use Reset in Struts JSP?
Use of form bean name in Action mapping for ActionForward class
reset() function in ActionForm class