Hi I am maintaining one of the application whose Home page(jsp) is actually getting the authentication info like username , userid from the Headers(request.getHeaders()). This home page is actually navigated from some other portal site which I am not allowed to access. So there is no way to know how that portal is setting the custom header info in the request which we are getting in our Home page. Does anybody has idea how can my system get the customized header info? Infact how can one setHeader in one page and getHeader in another?
There is an application in a separate server(WSSO).It sets a header information called USERNAME. Its jsp has a link to my application(Tomcat4.1). When that link is clicked the request comes to my jsp. In my jsp I am getting a non null value from from request.getHeader("USERNAME"). My question in how did that jsp from another application able to setHeader in request? Can a specific server provides any API to do that. Because nothing like this can happen in JSP/Servlets API.
My question in how did that jsp from another application able to setHeader in request?
I dont think that is actually happening here. Headers can only be set by the application generating the request. If this was my problem I would "view source" on the page that links to your jsp to see what is actually generating the request.
Also, if you don't have it yet, you might want to install the LiveHttpHeaders or FireBug plugin for Firefox. Both of these tools will allow you to see the request and response headers for all web requests going to and from your browser.