How can I access a JavaScript variable value in JSP?

Posted by Pramod on Stack Overflow See other posts from Stack Overflow or by Pramod
Published on 2010-03-29T06:52:28Z Indexed on 2010/03/29 7:23 UTC
Read the original article Hit count: 278

Filed under:
function modification()
{

  alert(document.getElementById("record").value);
  var rec=document.getElementById("record").value;
  <%
  Connection connect = DriverManager.getConnection("jdbc:odbc:DSN","scott","tiger");
  Statement stm=connect.createStatement();
  String record=""; // I want value of "rec" here.

  ResultSet rstmt=stm.executeQuery("select * from "+record);
  %>
}

© Stack Overflow or respective owner

Related posts about jsp