On Tue, 2 Oct 2001, Arnaud H�ritier wrote:

> Date: Tue, 2 Oct 2001 12:12:33 +0200
> From: Arnaud H�ritier <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED],
>      "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> To: "Tomcat-User (Adresse de messagerie)" <[EMAIL PROTECTED]>
> Subject: RE: Can't use Cookies in tag libraries ?????
>
> I just try to test with tomcat 4.0 standalone and I have the same problem :-(
>
> Craig, an idea ????
>

There is no difference in how cookies are handled between JSP pages and
servlets -- therefore the potential gotchas are the same.  Two common
reasons why cookies might not work for you:

* Cookies have to be set *before* the response is committed,
  because they are transmitted in HTTP headers.

* Cookies cannot be added inside a servlet or JSP page that has
  been included via RequestDispatcher.include() or <jsp:include>.

Craig

Reply via email to