Hello!
I have the following HTML img tag:
<html:img page="/images/inicial.gif" border="0"
onmouseover="this.src='/images/inicio-over.gif'"
onmousedown="this.src='/images/inicio-down.gif'"
onmouseout="this.src='/images/inicio.gif'"/>
The problem is that the page attribute is ok, img tag add the app context
before de page attribute and the image appears. But the others images in the
javascript events dosn't appear because struts doesn't put the app context
before the address.
I got the following HTML:
<img src="/myapp/images/inicio.gif" border="0"
onmouseover="this.src='/images/inicio-over.gif'"
onmouseout="this.src='/images/inicio.gif'"
onmousedown="this.src='/images/inicio-down.gif'">
How can I have this generated with all the images with myapp before the
source of the image? Like this:
<img src="/myapp/images/inicio.gif" border="0"
onmouseover="this.src='/myapp/images/inicio-over.gif'"
onmouseout="this.src='/myapp/images/inicio.gif'"
onmousedown="this.src='/myapp/images/inicio-down.gif'">
Thanks,
JP