You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by es...@globalsign.net on 2002/07/04 15:25:57 UTC

struts img tag (not being processed)

Hi all,

I've just started jsp/tiles/struts ... and I'm running into the following
problem:
When I replace the 'html img' tag, by the corresponding 'struts img' tag,
the JSP code in the src attribute doesn't get processed (see code samples).
This makes that the path for the images is invalid, and the following text
is displayed instead : ???nl_BE.null???.

code 1 works
code 2 does NOT (when adding the Struts tags)

---  Code 1  ---
<img src='<%=request.getContextPath()%>/images/tomcat.gif' />
<img src='<%=request.getContextPath()%>/images/struts-power.gif' />

---  Code 2  ---

<html:img src='<%=request.getContextPath()%>/images/tomcat.gif'/>
<html:img src='<%=request.getContextPath()%>/images/struts-power.gif' />

Can anybody point me in the right direction ? 

Thanks in advance,
Esther

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>