This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 8843
    
    7

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]
 
Don't get me started about those stupid light bulbs.
 
subject: Alternative for Reset attribute of the struts form
 
Similar Threads
reset() function in ActionForm class
populated form fields
How to use Reset in Struts JSP?
Setting up form data
Use of form bean name in Action mapping for ActionForward class