Hello,
What worries me is that it is the first and only thing I do! I have a test page where
I set the header with a test value, I do a redirect and try in the second page to
print the header...and it is not set!!
Has anybody ever tried to do this?
Thanks for your help,
Best Regards,
Carine Porret
[EMAIL PROTECTED]
-----Message d'origine-----
De : Eric Noriega <[EMAIL PROTECTED]>
� : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : jeudi 10 ao�t 2000 17:39
Objet : Re: Problem with the Http Header
> The timimg issue with placing cookies or other headers in before
>the actual transfer is started seems to come up all of the time. This
>seems to be to be a perfect case for the need of an exception. If the
>header is not placed because it's too late in the cycle, the container
>should throw a RuntimeException of some sort. Anybody in the JCP
>listening?
>
>On Wed, 9 Aug 2000, Gokul Singh wrote:
>
>> Hi,
>>
>> Can you please send us the code..
>> If you try to set a header after the response has been commited then the
>> headers are not set and ignored.
>> The servlet container may commit the response at its discretion. Hence it is
>> always better to set the headers before using the OutputStream /
>> PrintWriter.
>>
>> regds,
>> Gokul
>> ----- Original Message -----
>> From: "Carine Porret" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Wednesday, August 09, 2000 1:33 PM
>> Subject: [SERVLET-INTEREST] Problem with the Http Header
>>
>>
>> > Hello,
>> >
>> > I have a problem concerning Http Headers. I try in my servlet to add an
>> attribute in the http header (actually the cookie string in order to be able
>> to get it from an application in another domain) with the following method :
>> >
>> > resp.setHeader("HTTP_TEST","test");
>> >
>> > but if I print the header, that attribute is not added.
>> >
>> > Could anybody help me out on this ?
>> >
>> > Thank you so much,
>> >
>> > Best Regards,
>> >
>> > Carine Porret
>> > [EMAIL PROTECTED]
>> >
>> >
>> ___________________________________________________________________________
>> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>> body
>> > of the message "signoff SERVLET-INTEREST".
>> >
>> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> > Resources: http://java.sun.com/products/servlet/external-resources.html
>> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>> >
>>
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html