I have a JSP file,it include a Javascript,it follows: <SCRIPT language=javascript> <!-- function display(message) { alert(message); } --> </script>
<% String[] msg=new String[2]; msg[0]="Hello"; msg[1]="world"; %> Then I transfer msg into Javascript,like follows: <td width="159px" onclick="display(<%=msg[0]%>)"><B>Click Here</B></td> I found it can't work at! Why? I have thought of it for a long time,but I still don't know to do it! How to correct this JSP file? Thanks in advance! Best regards, Edward King =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com