You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Florian Convers <fc...@webnet.fr> on 2003/04/22 11:20:50 UTC

html:rewrite inside an attribute

Hi,

How to deal with something like this :

<html:link href="goListeSites"
onmouseover="MM_swapImage('Sites','','<html:rewrite
page='/img/menu/sites_on.gif'/>',1)" onmouseout="MM_swapImgRestore()">

Do I need to write the whole attribute with a java scriplet like this :
<html:link href="goListeSites" onmouseover='<%="MM_swapImage('Sites','','" +
servlet.getContextPath() + "/img/menu/sites_on.gif'/>',1)"%>'
onmouseout="MM_swapImgRestore()">

Thanks
Florian



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org