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

Query String

Status
Not open for further replies.

jass1220

Programmer
May 20, 2003
88
AE
in asp there is something called Query string
how i can do the same in jsp ??


<a href=&quot;mateDetails.jsp?h=<%=rs.getString(&quot;regis_id&quot;)%>&quot;>

id = Request.querystring (&quot;h&quot;)

 
what i mean is that i have a table of products each record is hyperlinked .. when the user clicks on the link he gets the details of that product in another page ..

 
found the answer ..
i used getParameter ...

thanks
 
When writing JSP/servlets, there are three main classes which you will work with - HttpSession, HttpServletResponse and HttpServletRequest (and their parent classes ServletRequest and ServletResponse).

These classes have quite a few methods in for interrogating the HTTP request, such as remote host, header info, parameters and so on. Search for the docs on the site ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top