jsp send parameter to next page

Q

Quick Function

I have a jsp page, say first.jsp. In the page, there is a link to
another page, say second.jsp. I call first.jsp by
http://www.mydomain.com/app/first.jsp?p=1. I want to design first.jsp
such that all parameters send to it will be forwarded to second.jsp
through the link. What is the best way to do it? How can I do it with
jstl?


Thanks,

qq
 
T

Tor Iver Wilhelmsen

I want to design first.jsp such that all parameters send to it will
be forwarded to second.jsp through the link. What is the best way to
do it?

Traditional servlet API has request.getQueryString(), try adding that
to the link.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top