how to get the query values from the url in a servlet and pass them to jsp

ok..this is the situation...

all applications are routed through a login page...

so if we have a url like www.abc.com/appA/login?param1=A&param2=B , the query string must be passed onto a servlet(which is invoked before the login page is displayed)..the servlet must process the query string and then should pass all those values(as hidden values) to the login jsp..then user enters username and pswd, then there should be another servlet which takes all the hidden values of jsp and also username and pswd, authenticates the user and sends the control back to that particular application along with the hidden values...

so i need help on how to parse the query string from the original url in the servlet, pass it out to jsp, and then pass it back to the servlet and back to the original application...damnn...any help would be greatly appreciated...thanks

[886 byte] By [hari786a] at [2007-11-27 11:44:35]
# 1

> ok..this is the situation...

Sounds like you have a bad design on your hands.

You're going to send passwords in a GET request as clear text? Nice security there.

Why not start with basic security and work your way up?

%

duffymoa at 2007-7-29 17:56:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

If you must pass parameters to a JSP, have the servlet put them into page or session scope as attributes and then forward to the JSP in question. They just aren't parameters anymore, they're attributes.

%

duffymoa at 2007-7-29 17:56:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...