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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Variables in URL

Status
Not open for further replies.

Terwin

Programmer
May 23, 2002
51
US
I want to make sure I'm able to pass get variables to a jsp
in a url. Oddly, the following happens:

(referring page)
<a href=&quot;foo.jsp?type=bar&quot;>link</a>

(foo.jsp?type=bar)

<%= request.getParameter(&quot;type&quot;) %>

The above statement evaluates to null.. Is there something
simple that I'm doing wrong?

Thanks,
Terwin
 
This looks correct to me. There could be something else wrong in your code. If you want to post your code, I could look at it a little further.

-gc &quot;I don't look busy because I did it right the first time.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top