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 -0000, [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 -0000 Issue 6510
>
> Topics (messages 152793 through 152818):
>

Reply via email to