struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Watrous" <dwatr...@hotmail.com>
Subject Re: Can't put scriptlet into onmouseover
Date Tue, 08 Feb 2005 22:49:45 GMT
Neil,

It seems that the approach to take would be to modify (or replace through 
inheritance) the link tag.  This way you could eliminate the scriplet in 
your page and centralize your management of images too.

I'm not sure that scriptlets are permitted inside jsp tags.  The idea of the 
tag is that it replaces the scriptlet.

DW

----- Original Message ----- 
From: "Neil Aggarwal" <neil@JAMMConsulting.com>
To: "'Struts Users Mailing List'" <user@struts.apache.org>
Sent: Tuesday, February 08, 2005 3:44 PM
Subject: Can't put scriptlet into onmouseover


> Hello:
>
> I have an html:link tag in my navigation jsp page.
>
> I that page, I have an html:link tag that has an on mouseover
> attribute.  I want to put a scriptlet in the onmouseover
> to generate the url to the image.  Here is an example:
>
> <html:link action="/home.do" target="_top"
> onmouseover="setImage('homeButton','<%=
> PathUtil.getImagePath(request,"layout/homeButtonOver.gif") %>')"
>
> But, this fails to compile.  I get this error:
>
> org.apache.jasper.JasperException: /navigation.jsp(21,87) equal symbol
> expected
>
> You can see it on this page:
> http://www.pricetracker.jammconsulting.com/pricetracker/navigation.jsp
>
> If I remove the scriptlet and hard code an image, everything is
> fine.
>
> Any ideas?
>
> Thanks,
> Neil
>
> --
> Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
> FREE! Valuable info on how your business can reduce operating costs by
> 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 

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


Mime
View raw message