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

Reply via email to