Dear all,

  Does anyone know how we can pass a JavaScript variable into JSP?

  For example, when I try to following simple JSP file, it will say that
  jscript_data is not found. Does anyone know how I can achieve this?
  Any help will be greatly appreciate it. Thanks.

Francis

<%! int id; %>
<html>
<head>
</head>

<SCRIPT LANGUAGE="JavaScript">

function a() {
        var jscript_data = 1;

        <% id = jscript_data; %>
}

</SCRIPT>
<BODY>
</BODY>
</HTML>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to