File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: image and multiple form actions
It's not a secret anymore!