I think the proper way is to have a regular link and to make it look like an image with CSS. This way a link will stay a legible link in text-only mode. Same works with a button.
Image button is an atavism. On 3/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > per http://struts.apache.org/struts-taglib/tagreference-struts-html.html > > # <html:image> Render an input tag of type "image" Renders an HTML > <input> tag of type "image" > # <html:img> Render an HTML img tag Renders an HTML <img> element with > the image at the specified URL > > > -----Original Message----- > > From: Markus Demetz [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 13, 2006 11:38 AM > > To: Struts Users Mailing List > > Subject: AW: problems with <html:image> enclosed by a <html:link> > > > > > > > > > What does the raw html look like? > > > > <html:link page="<%= "/common/myAction.do?id="+c.getId()%>"> > > <html:image page="/images/mf.jpg" /> > > </html:link> > > > > > > produces: > > > > <a href="/common/myAction.do?id=10"><input type="image" > > name="" src="/images/mf.jpg"></a> > > > > it works in mozilla but not in IE. > > > > markus > > > > > > > > >>> [EMAIL PROTECTED] 3/13/2006 9:38:48 AM >>> > > > Hi, > > > > > > I'm trying to do a link over an image like this: > > > > > > <html:link page="<%= "/myAction.do?id="+c.getId()%>"> > > > <html:image page="/images/image.jpg" /> > > > </html:link> > > > > > > But it doesn't work. It leads to a strange behaviour in Internet > > > Explorer... The browser shows the link (in the statusbar) when the > > > mouse is over the > > > image, but the link doesn't work. When rightclicking->open in new > > > window.. > > > it works. > > > In Mozilla it seems to work correctly... > > > > > > When replacing <html:image with <img src ...> everything > > works fine, > > > but i need the image to be context-root relative. > > > > > > Whats wrong? > > > > > > Thank you very much, > > > Markus > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > __________________________________ > > > > > > Confidentiality Statement: > > > This email/fax, including attachments, may include > > confidential and/or > > > proprietary information and may be used only by the person > > or entity > > > to which it is addressed. If the reader of this email/fax > > is not the > > > intended recipient or his or her agent, the reader is > > hereby notified > > > that any dissemination, distribution or copying of this > > email/fax is > > > prohibited. If you have received this email/fax in error, please > > > notify the sender by replying to this message and deleting > > this email > > > or destroying this facsimile immediately. > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]