This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Now when I log in to my initial servlet where I have been adding my "MyName" header , it sets header fine and my jsp which uses this header uses it correct ( as the value to the button and prints "Tester") .
But when I click on the button and the control goes to SessionTestServlet ( as it is submit button) , this header is lost.
Is there a way , in which i can set up a header in a initial servlet and it can be passed in all the subsequent request to the server ? As in my case "MyName" header is passed from my jsp to the next servlet .
Cookies are provided for the purpose of having the client browser add data to each request.
Joined: Feb 29, 2012
Thanks Tim and Bill,
So isn't there any way in JSP ( i mean using some tags or other approach ) in which I can ask browser to send some header to servlet .
I mean as we know putting <META HTTP-EQUIV tag adds the following name to response header to be read by client . Is there any such tag which i can put so that client know that it has to send it to the servlet as header.
subject: Passing header in all subsequent HTTP Request