RE: problems with html:image enclosed by a html:link
Check out the api here: http://struts.apache.org//struts-doc-1.2.8/userGuide/struts-html.html html:image is a submit button on a form with an image instead of a button. html:img is your standard image that is not a button 1) you can use html:link with html:img or 2) you could just use html:image if you're trying to submit a form. I would think you would want to try number 1 in your case. Shawn On 13 Mar 2006 19:00:19 -, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: From: Markus Demetz [EMAIL PROTECTED] To: Struts Mailing List user@struts.apache.org Date: Mon, 13 Mar 2006 16:38:48 +0100 Subject: problems with html:image enclosed by a html:link Hi, I'm trying to do a link over an image like this: html:link page=3D%=3D /myAction.do?id=3D+c.getId()% html:image page=3D/images/image.jpg / - Show quoted text - /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 user Digest 13 Mar 2006 19:00:19 - Issue 6510 Topics (messages 152793 through 152818):
problems with html:image enclosed by a html:link
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]
Re: problems with html:image enclosed by a html:link
What does the raw html look like? [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]
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=10input 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]
Re: AW: problems with html:image enclosed by a html:link
Markus Demetz wrote: 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=10input type=image name= src=/images/mf.jpg/a it works in mozilla but not in IE. Do you really want an image input tag there or do you simply want an image used as a link? Dave
RE: problems with html:image enclosed by a html:link
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=10input 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]
Re: problems with html:image enclosed by a html:link
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=10input 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]
AW: problems with html:image enclosed by a html:link
ok thank you for your answers. I'll fix it in some way... thanks, markus -Ursprüngliche Nachricht- Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] Gesendet: Montag, 13. März 2006 18:40 An: Struts Users Mailing List Betreff: Re: problems with html:image enclosed by a html:link 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=10input 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: problems with html:image enclosed by a html:link
Markus Demetz wrote: ok thank you for your answers. I'll fix it in some way... Some way? Just use the correct tag. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]