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" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]