Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Variable via HTTP Address Line

Status
Not open for further replies.

Tim2525

Technical User
Feb 7, 2005
51
0
0
US
Hi All,

I have a jsp page calling another jsp page. I want to pass information to the called page via the http address line.

Example: document.forms[frmName].action = "/tools/test/new.jsp?new,x";

How would I retrieve "new" and "x" from the http line in my new jsp.

TIA,
T

 
That URL name=value parameter that you posted would not work...

If it was like this however :

document.forms[frmName].action = "/tools/test/new.jsp?someName=someValue";

then you can do :

String someValue = request.getParameter("someName");

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Dumb question sedj. Where would I declare variable someName?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top