And don't forget that you don't have to hard-code the whole URL here - there
are broken down components of it under document.location, such as
document.location.search to update just the query string part of it
(starting with the '?'), etc. If you're staying on the same
server/domain/webroot, you might want to omit those parts and just change
the document/jsp name and search string.
Oops, I think it might be something like this:
document.links[0].search = "?user=" + u
Bill Hines
Hershey Foods
-----Original Message-----
From: Steingoetter, Jochen
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 3:41 AM
To: [EMAIL PROTECTED]
Subject: Re: Passing Query String with URL
Hi,
try it like this:
document.location.href="http://localhost:8181/LoginCRMPrj/Change_Pwd.jsp?use
r=" + u + "&pwd=" +p;
Cheers Jochen
-----Original Message-----
From: B.V.Murali Krishna [mailto:[EMAIL PROTECTED]]
Sent: 01 August 2000 08:17
To: [EMAIL PROTECTED]
Subject: Passing Query String with URL
hi all,
I am using a javascript function in Jsp, where i am calling another Jsp
and passing a query string with it. The problem is that the query string
paramater values which are javascript variables are not converted to their
values.
onclick="go_to(user.value,pwd.value)"></td>
function go_to(u,p) {
alert(u);
alert(p);
document.location.href="http://localhost:8181/LoginCRMPrj/Change_Pwd.jsp?use
r=u&pwd=p"
}
The values are user is retrieving as u and not the values same for pwd.
Can someone please help me.
Thank 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
===========================================================================
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