[Advanced-java] addHeader/setHeader Problem in JSP and Servlets.
Panos Konstantinidis
girionis at yahoo.com
Fri Nov 25 00:22:07 PST 2005
It would be a lot easier to add your data in the session.
--- Ethan Hunt <prabhatr7 at hotmail.com> wrote:
> HI All,
>
> I am trying to send some headers from my JSP file to the servlet. I tried
> using this code.
>
> response.addHeader("sample", "Sample Value");
> response.setHeader("sample", "Sample Value");
>
> In the servlet i tried retrieving them, but with no success.
>
> I read somewhere that neither a JSP nor a servlet has the right to modify
> the request or response. So the suggestion was to use Filters. I have tried
> using filters the code is pasted hereunder. but this thing also doesnt seem
> to work.
>
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
More information about the Advanced-java
mailing list