users@glassfish.java.net

Re: JSF, navigation case, redirect, url rewriting

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Mon, 15 Mar 2010 17:38:30 -0700

Dominik Dorn wrote:
> Try this:
> http://dominikdorn.com/2010/03/disabling-jsessionid-url-appending-servlet-3-0/

Thanks, Dominik!

The behaviour you are observing is a side effect of the fix for
https://glassfish.dev.java.net/issues/show_bug.cgi?id=4394 ("server log
message says enableURLRewriting is not supported"):

Earlier GlassFish releases treated cookies and URL rewriting as mutually
exclusive session tracking modes. In fact, all you could do is enable or
disable cookies, which would disable or enable URL rewriting, respectively.

As requested by the user community, and subsequently adopted by the
Servlet 3.0 specification, we added support for enabling or disabling
URL rewriting "in its own right", that is, independently of cookies.

By default, both cookies and URL rewriting are enabled. To disable one
or the other, use a ServletContextListener, as in Dominik's example, or
configure the supported session tracking modes via your application's
web.xml deployment descriptor.

Jan

>
> [Message sent by forum member 'hotngui']
>
> http://forums.java.net/jive/thread.jspa?messageID=392025
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> <mailto:users-help_at_glassfish.dev.java.net>
>
>
>
>
> --
> [url=http://www.dominikdorn.com]Dominik Dorn[/url]
>
> Tausche Deine [url=http://www.studyguru.eu] Lernunterlagen auf
> http://www.studyguru.eu[/url]!
>