Hi I have a requirement to set the values to the http header in one jsp file and get the values from the http header in the other jsp file. I tried to set the values to the response by using the both ways mentioned as below... <% response.setHeader("name", value); response.addHeader("name", value);
response.sendRedirect("../second.jsp"); %>
i have the following logic to retrieve from the http header...
Here I could not able to get the values set to the http header.
Can any one give an idea how to set and get the values from the http header.
Thanks, Ravindra.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35249
7
posted
0
This is fundamentally impossible. Response headers are about the response sent back to the client; they have nothing to do with the next request, and won't be included in it.
But since you are using a redirect, you can pass a value in the URL, like