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 image and multiple form actions 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 "image and multiple form actions" Watch "image and multiple form actions" New topic

image and multiple form actions

azhar bharat
Ranch Hand

Joined: Jul 17, 2006
Posts: 87
I have a search form, which is common input form for 3 different Action classes. I have 3 images instead of submit buttons which needs to submit to the corresponding action class. I can use "onclick" attribute for this. But i want to know if there is anything i can do using "html:image" tag to achieve this without "onclick".

Due to specific requirements i cannot use DispatchAction in the application.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I have not tried this personally, but there is an ImageButtonBean object that you might try using.

Consultant, Sima Solutions
It is sorta covered in the JavaRanch Style Guide.
subject: image and multiple form actions
Similar Threads
Hyperlink , action
servlet doubt
Submit button
forwarding request to some other server
trouble using if decision statement in a jsp page