Hi, This is what I understood... correct me if wrong...
1) You have a jsp page which does some processing on the value passed to it. 2) The values are passed by javascript. To do the above, you need to submit the values to the jsp (either as querystrings or as form values). 3) JSP returns some value which is used again in the javascript. To do this you have to redirect the request (from jsp) to the page which has your javascript. In this page, use jsp scripting in your javascript to set the js variable value. Dayanand. -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Chetan K.R Sent: Wednesday, September 04, 2002 11:38 AM To: [EMAIL PROTECTED] Subject: How to pass a JS variable to JSP method ? Hi all, I need to pass the value of a JS variable to a JSP method The JSP is enclosed inside <script> tag The value returned by JSP is used for some purpose in JS Any idea how to do it ? TIA ========================= 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 =========================================================================== 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
