on 12-02-2008 12:40 PM
Hi All,
I need to pass some parameters from a JSP page while Redirecting the page to some URL.
I coded as follows :
jsp:SendRedirect("url"?username="username"&password="+password);
It's redirecting to the specified url, but at the same time it is displaying the username and password along with the url.
How to hide this parameters disaplyed as a querystring with the url.
Regards,
Eben Joyson.
Hi Eben,
You can use the following tag for the same function
<jsp:forward page="test.jsp?username=username1&password=password1"/>
It won't show the username and password in the browser.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.