very easily:
in js
make a statement like location.search to retrieve the query part of
your url and use split function to retrieve the values or indexof to
know if the pairvalue you looking for exist in the query (by example)

anyway since it's more easy in jsp
so you can make also in your script(assuming the java is serverside
and js client side);-)

myvarinjavascript = "<%=request.getParameters(myvarinurl)%>"

tanx for attention


>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

Reply via email to