How can I pass parameters in a <html:image tag.
http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript
If you do the coding on this one time, you merely have to add a new button when you want one in command class ButtonOperation. After a while, you will have to do no coding at all. Actually, I have built a taglib utilizing this Multiple Image Button "scenario" that looks like the following on the page:
<crackwillow:image button='GO.gif' mapBean='host' bgClr='FFFFFF' txtClr='000000' font='Eurostile' italic='false' bold='true' size='20' property='button.go/>
This extends Struts's html SubmitTag and replaces Struts's html ImageTag. The button attribute is internationalized with message resources and makes fonts in whatever language you want on the fly. The results are cached, so that there is no need to have a "src" attribute that is exposed, even though there is one internally. All the page author has to do is to put this on the page and the button appears automagically. There are also bgClrCode and txtClrCode attributes that make it possible to assign dynamic values to the colors of the background and the text of the image. If the image is Chinese, etc, a suitable alternate font to the one chosen is automatically subsituted.
This something like what you are interested in?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]