Murali,
   I'm not sure why you want to convert JavaScript variables to Java
variables because the Java code will be evaluated at the request time at the
server before the page is sent back to the browser.  What you want to do is
not possible.  The JavaScript does not get evaluated until it reaches the
browser.  At that point, the Java code has already been evaluated at the
server.  The reverse of what you want to do, that is convert Java variables
to JavaScript variables is possible however.


-Richard

-----Original Message-----
From: B.V.Murali Krishna [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 3:49 AM
To: [EMAIL PROTECTED]
Subject: How to convert javascript variables to Java variables


hi all,
  How to convert javascript variables to java variables.
this is my function

function go_to(u,p) {

  <% LoginDao logObj = new LoginDao();
      userId = Integer.parseInt(u);
   boolean stat = logObj.login(userId,p);
  %>

i am getting error given below

Undefined variable: u:userId = Integer.parseInt(u);
Undefined variable: p:boolean stat = logObj.login(userId,p);

is there any solution to difine u and p.

Thanks in Advance

regards,
MURALI KRISHNA BALUSA
VELOCIENT TECHNOLOGIES
NEW DELHI.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to