Java Servlet, How to add a response header before forwarding to another resource?

Please read this JR thread I believe you are expecting similar thing.

Please read this JR thread, I believe you are expecting similar thing.

No, I did try to get the header in 1. Jsp through request object, I just use "Firebug" to watch the http headers, my custom header does not show in "1. Jsp" – virsir Jun 20 at 2:49 @virsir: Would you mind posting the relevant snippet of what you get in Firebug?

– Adeel Ansari Jun 20 at 3:01.

If you want to use some data added by the servlet in the 1. Jsp code, I suggest you use request. SetAttribute method.Response.

AddHeader/setHeader put some data into the response'header. Generally the data in the response header is used by the browser.

Yes, I just need to send a header to browser directly – virsir Jun 20 at 2:52 response. AddHeader will add a response header and the browser will receive it. I have tested the code.

You can try it. – YODA Jun 20 at 6:14.

Try to use . Include(request, response) instead. Probably it's a .forward() feature to fully clean response object before forwarding.

See download.oracle.com/javaee/5/api/javax/s....

No, its not the case. – Adeel Ansari Jun 20 at 4:19.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions