You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by spot_ <sp...@ba-loerrach.de> on 2008/01/15 08:33:41 UTC

T4.1 friendly URLs and session restart

Hello all

I configured my T4.1 for friendly URLs
(http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html).
Everything works perfect, except a session restart as a result of time out.
In this case Tomcat (?) renders a page with the message, that the session
was timed out and with a link to restart.
This link points to the old (non-friendly URL): http://host/context/app
instead to my new home page: http://host/context/Home.page

Can anybody tell me how to solve this issue?

Thanks in advance.

Regards
Christoph
-- 
View this message in context: http://www.nabble.com/T4.1-friendly-URLs-and-session-restart-tp14833231p14833231.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: T4.1 friendly URLs and session restart

Posted by Ulrich Stärk <ul...@spielviel.de>.
Override the default StaleSession page with your own implementation. 
Just create a page called e.g. MyStaleSession and use an 
InfrastructureOverride in Hivemind like this:

<contribution configuration-id="tapestry.InfrastructureOverrides">
   <property name="staleSessionPageName" value="MyStaleSession" />
</contribution>

Look here http://www.nabble.com/forum/ViewPost.jtp?post=7217351&framed=y 
here 
http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html 
here 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/pages/StaleSession.html?view=markup 
and here 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/pages/StaleSession.page?view=markup 
for more information.

Cheers,

Uli

spot_ schrieb:
> Hello all
> 
> I configured my T4.1 for friendly URLs
> (http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html).
> Everything works perfect, except a session restart as a result of time out.
> In this case Tomcat (?) renders a page with the message, that the session
> was timed out and with a link to restart.
> This link points to the old (non-friendly URL): http://host/context/app
> instead to my new home page: http://host/context/Home.page
> 
> Can anybody tell me how to solve this issue?
> 
> Thanks in advance.
> 
> Regards
> Christoph


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