Hello Steve,

Wednesday, June 13, 2001, 9:10:39 PM, you wrote:

SAD>  Hello. I am trying to implement internationalized rollover buttons using
SAD> html:link. To do this, I'm trying to use quotes three levels deep and I
SAD> guess that's illegal in Javascript. For example, for "onmouseover", if I
SAD> try to extract the source name from the resource file, I try:


SAD> onmouseover="changeImage('<bean:message key="header.simpleQueryImageSourceR"/>')"

There is two strings - "changeImage('<bean:message key=" and "/>')"
Here is problem - parser treates it as two different string constants.

You can create javascript functions to implement logic and refer to it
from in onmouseover event. In javascript you can insert scriptlet code
or bean:message tags.

SAD> then I get a servlet exception:


SAD> A Servlet Exception Has Occurred

SAD> org.apache.jasper.compiler.ParseException:
SAD> /usr/apps/tomcat/jakarta-tomcat-4.0-b
SAD> 1/webapps/moria/test.jsp(55,84) Attribute header.simpleQueryImageSourceR
SAD> has no value
SAD>         at
SAD> org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:565)
SAD>         at
SAD> org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:683)
SAD>         at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:826)
SAD> ...


SAD> If I hardwire the source name that I'm trying to extract, it works. For
SAD> example:

SAD> onmouseover="changeImage('simpq_en_r')"


SAD> I'm using Struts 1.0-b3. Ideas are appreciated. Thanks in advance.



-- 
Best regards,
 Oleg                            mailto:[EMAIL PROTECTED]


Reply via email to