cancel
Showing results for 
Search instead for 
Did you mean: 

Hide the parameters while redirecting using jsp:SendRedirect().

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (0)