The Struts API is usually a good resource: http://jakarta.apache.org/struts/userGuide/struts-html.html#img
If you define a property for the html:img tag, Struts needs the property to be a map: "The name of a property of the bean specified by the name attribute, whose return value must be a java.util.Map containing the query parameters to be added to the src URL. You must specify the name attribute if you specify this attribute." If you aren't trying to attach parameters to the SRC attribute, try: <html:img src="../../enquiry/images/Customer-LB" /> -----Original Message----- From: vasudevrao gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 11:47 AM To: Hooper, Brian; 'Struts Users Mailing List' Subject: RE: Images as links in struts Now, below is the code which I am using... <html:link href="javascript:click('customer');" ><html:img src="../../enquiry/images/Customer-LB" property="custImage" name="enquiryFormBean"/></html:link> I have included set and get methods for property "custImage" in "enquiryFormBean"."custImage" is declared as a "String" type in the form bean. I get the below erro while executing the jsp: [14/01/04 22:07:30:484 GMT+05:30] 777a5f8a WebGroup E SRVE0026E: [Servlet Error]-[Object must be of type Map]: javax.servlet.jsp.JspException: Object must be of type Map at org.apache.struts.taglib.html.ImgTag.url(ImgTag.java:628) at org.apache.struts.taglib.html.ImgTag.doEndTag(ImgTag.java:410) at org.apache.jsp._ADS_5F_ELS_5F_CreateEnquiry._jspService(_ADS_5F_ELS_5F_C reateEnquiry.java:796) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java :89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service (JspServlet.java:344) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet .java:598) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:6 96) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe rvletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi fecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle Servlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif ecycleServlet.java:116) Please provide guidance Regards VasudevRaoGupta -----Original Message----- From: Hooper, Brian [mailto:[EMAIL PROTECTED] Sent: 14 January 2004 19:51 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Images as links in struts At first glance you've got some quote problems, and I think you want an img tag, not a input type=image tag. Try this: <html:link href="javascript:click('customer')"><html:img src="../../customer.gif" property="custImage"/></html:link> -----Original Message----- From: vasudevrao gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 9:15 AM To: 'Struts Users Mailing List' Subject: RE: Images as links in struts This is how I have given... <html:link href="javascript:click('customer')><html:image page="../../customer.gif" property='custImage"/></html:link> But its not working... Regards VasudevRapGupta -----Original Message----- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: 14 January 2004 19:31 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Images as links in struts Just do the normal thing? Put an image tag in the body of a link tag. http://jakarta.apache.org/struts/userGuide/struts-html.html#link "The content displayed for this hyperlink will be taken from the body of this tag." --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

