You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alex Colic <al...@pop-ware.com> on 2001/05/02 15:00:03 UTC

How to use
Hi,

I am trying to get some images to work but so far no luck.

My web app directory is as follows
myCompany/... place for my JSP's
myCompany/Images..all my images are here.

On one of my pages, "pwSubmit.jsp" I have the following tag.
<html:image page="/Images/cancel.gif" alt="Cancel" property="action"
value="cancel" />

For the above Struts tag the image does not show up but if I use the below
HTML tag the image does.

<IMG SRC="./Images/cancel.gif" ALT="Cancel" NAME="btnCancel">
When I look at the source I see the following for html:base

<base href="http://localhost/myCompany/pwWRSubmit.jsp">

and for the image tag.

<input type="image" name="action src="/myCompany/Images/cancel.gif"
alt="Cancel" value="cancel">

Any help is appreciated.


Regards

Alex