Till,
You're absolutely correct - I was using <!-- //--> comments around the
Javascript functions.
I removed them as you suggested and <bean:message/> worked perfectly.
Thanks very much.
Denis
-----Original Message-----
From: Till Nagel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 8:09 AM
To: [EMAIL PROTECTED]
Subject: Re: Javascript + localized messages
Hi Denis,
you have HTML-comments around the JavaScript code, right?
So just delete them and it will work. It is not a Struts problem but a JSP
one.
If you want to support old browsers and include those HTML comments you must
use JSP Script to print it.
<script language="JavaScript" type="text/javascript">
<%
out.println("<!--");
%>
alert("<bean:message key="whatever"/>");
<%
out.println("// -->");
%>
</script>
Regards,
Till