You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alen Ribic <al...@mweb.co.za> on 2003/07/01 00:00:06 UTC
how to?
Hi Everyone
I have the following <img /> tag that I would like to write using the Struts
custom tag <html:img /> but I just can't seem to get it to work.
<img
src='<%=request.getContextPath()%>/images/items/<%=request.getParameter("pro
ductImage")%>' border='0'>
Can I write something like this using custom tag <html:img />?
I need a request parameter to be the image name!
Any help would be appreciated.
--Alen
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: how to?
Posted by Benjamin Stewart <bs...@waterwerks.com.au>.
I have never used the image tag from struts tag lib, but I was under the
assumption that tag was for when you want to use the image as a form
object ? ie. It is an image type. I am not sure why you would want to
use the <html:img> tag even if it did what you want.
Check out http://jakarta.apache.org/struts/userGuide/struts-html.html#image
It says;
Renders an HTML |<input>| tag of type "image".
Cheers
Ben
Alen Ribic wrote:
>Hi Everyone
>
>I have the following <img /> tag that I would like to write using the Struts
>custom tag <html:img /> but I just can't seem to get it to work.
>
><img
>src='<%=request.getContextPath()%>/images/items/<%=request.getParameter("pro
>ductImage")%>' border='0'>
>
>Can I write something like this using custom tag <html:img />?
>I need a request parameter to be the image name!
>
>Any help would be appreciated.
>
>--Alen
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org