Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
[struts 2] multiple buttons
Jesus Angeles
Ranch Hand
Posts: 2108
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 2108
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I just need to 2 buttons - 'Remove' and 'Cancel', each of which will go to a different action.
Merrill Higginson
Ranch Hand
Posts: 4864
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Seems pretty straightforward to me. I'd do it like this.
<s:submit name="submit1" value="submit1" action="/action1" /> <s:submit name-="submit2" value="submit2" action="/action2" />
Merrill
Consultant,
Sima Solutions
Jesus Angeles
Ranch Hand
Posts: 2108
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks.
For some reason, it isnt working for me. I made a dirty workaround, and will try this again when I have time.
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
org.apache.struts2.dispatcher.Dispatcher serviceAction Could not find action or result
Processing a request in Struts 2
Loading from MessageResources.properties in Struts 2
How to get errors in doStart() tag
[Ask] Handle Wrong Actions?" Error Code 404 (Http Not Found)
More...