Daniel:

Is there a more "struts-friendly" way to do rollover buttons?

I have my images served out of apache, not tomcat in order to
make them load as quickly as possible.  Also, since I am using
named virtual hosting, the url to an image will be different
in http and https mode.  That is why I need a piece of code
to generate the url.  It first has to check in what mode the
page has been loaded.

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

> -----Original Message-----
> From: Daniel Watrous [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 08, 2005 4:50 PM
> To: Struts Users Mailing List
> Subject: Re: Can't put scriptlet into onmouseover
> 
> 
> 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]
> 


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

Reply via email to