You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Morales, David <dm...@indra.es> on 2004/11/12 16:58:15 UTC

html:img help

Hello¡¡

I need to use something like this:

<html:img src="<myproject:path />/img/t.gif" width="202" height="1" />

I mean... i need an image, but i need to reference my project's context. To do this, i have a tag (myproject:path) that write the request's context

something like this in my tld:

JspWriter jw = this.pageContext.getOut();
jw.write(req.getContextPath());

My questions are...
Can i use this tag inside property "src" in html:img struts's tag ?
	If i write this, tag doesn't work¡¡  src="<myproject:path />/img/t.gif" 
	If i write this, tag doesn't work¡¡  src='<myproject:path />/img/t.gif'

How can i write my project's context in html:img struts's tag so it can find my images???



Thanks in advance...