|
I also could not understand the meaning of response.setHeader.
Originally posted by Anupam Sinha:
Actually MyServlet takes the Header Info passes it on to other classes and thats it.
Originally posted by Anupam Sinha:
Actually this was just a test code. I don't require a JSP but in case it can solve the problem please tell me about it.
Secondly I want to set the headers. I was unable to find a request.setHeader(). I thought we set the header in the response and read it from the request. If that isn't the case please enlighten.
My actual requirement is to test a bunch of classes who kick in after they recieve a request. The parameters are set in the request whereas some some data need to be collected from the header. I cannot use getParameter as I would be recieving some info in the header only. Is there any way wherein I can set the header in the request.
If I understand Ben correctly you mean to say that I would need to commit the response and then only I would be able to get those headers in the request. So if thats the case as Pradip stated sandwiching a JSP between them should solve the problem. The JSP would read the headers and set them as Attributes and then the servlet can later work on the attributes.
[ January 31, 2006: Message edited by: Anupam Sinha ]
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|