This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes [struts 2] multiple buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "[struts 2] multiple buttons" Watch "[struts 2] multiple buttons" New topic
Author

[struts 2] multiple buttons

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Hi,

Anyone able to successfully use at least 2 buttons?

I cant seem to make it work using the notes in http://struts.apache.org/2.x/docs/html-form-buttons-howto.html.
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
I just need to 2 buttons - 'Remove' and 'Cancel', each of which will go to a different action.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Seems pretty straightforward to me. I'd do it like this.


Merrill
Consultant, Sima Solutions
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Thanks.

For some reason, it isnt working for me. I made a dirty workaround, and will try this again when I have time.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [struts 2] multiple buttons
 
Similar Threads
org.apache.struts2.dispatcher.Dispatcher serviceAction Could not find action or result
Loading from MessageResources.properties in Struts 2
Processing a request in Struts 2
[Ask] Handle Wrong Actions?" Error Code 404 (Http Not Found)
How to get errors in doStart() tag