File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Struts 2 Cancel Button
Joined: Oct 29, 2001
Sep 16, 2010 07:16:41
I had a problem canceling a form in a Struts 2 app and went googling for "Struts 2 Cancel Button". One of the hits was the
Struts 2 Announcement Page
Easy cancel handling - The Struts2 Cancel button can go directly to a different action.
I can't find any reference to this functionality in my books or the Struts documentation. The Struts 2.0.6 home page has this code:
<s:submit action="Register_cancel" value="Cancel" name="Cancel" onclick="form.onsubmit=null"/>
Is that what the announcement is talking about?
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
How To Ask Questions On JavaRanch
It is sorta covered in the
JavaRanch Style Guide
subject: Struts 2 Cancel Button
Struts Cancel Button submits the form
How to assign names to buttons and tell which button was pressed in the Action class?
Problems with action
document.referrer in struts
My Cancel button is not working in struts1.2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014