I have an <html:image> tag inside a <html:form> tag, which points to one of my Struts Actions. My Action utilizes a DynaActionForm, in which I have defined several form-property entries. One of these form-property entries, lets call it "imageProperty" matches the property attribute of my <html:image> tag, also "imageProperty".
However, in my Action, when I have clicked on the image generated by the <html:image> tag, the DynaActionForm object does NOT contain an entry for the <html:image> property attribute. I would expect that my call to dynaForm.get("imageProperty") would return something other than throwing an IllegalArgumentException. Here's the HTML: <html:form action="myAction"> <html:image page="/img/myImage.gif" property="imageProperty" /> </html:form> The struts-config.xml: <form-bean dynamic="true" name="myActionForm" type="org.apache.struts.action.DynaActionForm" > <form-property name="imageProperty" type="java.lang.String" /> </form-bean> <action attribute="myActionForm" name="myActionForm" path="/myAction" type="com.foo.bar.MyAction" validate="false"> <forward ... /> </action> The Action code: .... DynaActionForm dynaForm = (DynaActionForm) form; if ( dynaForm != null ) { Object o = dynaForm.get("imageProperty"); } .... Any thoughts on what I am doing wrong here? T --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]