i guess you can use the same request.getParameter in the javascript. something like
this:
<script language="javascript">
var value = <%=request.getParameter("val")%>
</script>
venkat
-----Original Message-----
From: Philip Moschovas [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, October 12, 2000 1:50 PM
To: [EMAIL PROTECTED]
Subject: JSP/Javascript and URL's
Hi, i'm kinda a newbie at all this so please bear with me.
i'm sending a parameter at the end of my url as follows
location.href = "myurl.jsp?var=value";
I can retrieve it on the myurl.jsp with request.getParameter, but I was
wondering if there was a way to retrieve that variable with javascript
instead.
Thanks for your time,
Phil
===========================================================================
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