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
473,776
Messages
2,569,603
Members
45,190
Latest member
Martindap

Latest Threads

Top