You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Brent Johnson <bl...@gmail.com> on 2004/07/27 00:09:43 UTC

Cocoon 2.1.5 and Servlet 2.2 Spec

I want to use the HttpSessionListener to invalidate sessions that have
expired (in case the user closes the browser rather than clicking
logout).

The DTD specified in web.xml shipped with Cocoon 2.1.5 is for the
servlet 2.2 spec which does not include the HttpSessionListener.

Does anyone know if Cocoon 2.1.5 can work under the servlet 2.3
specification using the latest version of Jetty?  If not, any other
ideas?  I think I can use an HttpSessionBindingListener or something..
which I believe works for the 2.2 spec.. but isn't quite as elegant.

Thanks,

- Brent

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Cocoon 2.1.5 and Servlet 2.2 Spec

Posted by Ugo Cei <ug...@apache.org>.
Il giorno 27/lug/04, alle 00:20, Brent Johnson ha scritto:

> Ahh really?  I tried that and Jetty complained about some element not
> being recognized.  I'll definitely play around with trying to switch
> the DTD to 2.3.  I assume you changed it to:
> http://java.sun.com/dtd/web-app_2_3.dtd

Yes, and don't forget to set the PUBLIC id to "-//Sun Microsystems, 
Inc.//DTD Web Application 2.3//EN" also.

-- 
Ugo Cei - http://beblogging.com/

Re: Cocoon 2.1.5 and Servlet 2.2 Spec

Posted by Brent Johnson <bl...@gmail.com>.
Ahh really?  I tried that and Jetty complained about some element not
being recognized.  I'll definitely play around with trying to switch
the DTD to 2.3.  I assume you changed it to:
http://java.sun.com/dtd/web-app_2_3.dtd

Thanks,

- Brent

On Tue, 27 Jul 2004 00:12:44 +0200, Ugo Cei <ug...@apache.org> wrote:
> Il giorno 27/lug/04, alle 00:09, Brent Johnson ha scritto:
> 
> > Does anyone know if Cocoon 2.1.5 can work under the servlet 2.3
> > specification using the latest version of Jetty?  If not, any other
> > ideas?  I think I can use an HttpSessionBindingListener or something..
> > which I believe works for the 2.2 spec.. but isn't quite as elegant.
> >
> 
> I routinely edit web.xml and set the doctype to the 2.3 version and
> never had a problem with it.
> 
>         Ugo
> 
> --
> Ugo Cei - http://beblogging.com/
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Cocoon 2.1.5 and Servlet 2.2 Spec

Posted by Ugo Cei <ug...@apache.org>.
Il giorno 27/lug/04, alle 00:09, Brent Johnson ha scritto:

> Does anyone know if Cocoon 2.1.5 can work under the servlet 2.3
> specification using the latest version of Jetty?  If not, any other
> ideas?  I think I can use an HttpSessionBindingListener or something..
> which I believe works for the 2.2 spec.. but isn't quite as elegant.
>

I routinely edit web.xml and set the doctype to the 2.3 version and 
never had a problem with it.

	Ugo

-- 
Ugo Cei - http://beblogging.com/