If you use the page attribute to html:img instead of the src attribute, the value will have the context prepended automatically. Does that not achieve the same thing your tag is achieving?

Erik


Morales de Frías wrote:

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...






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to