I was in the same boat. I managed solving this problem by making my first Tapestry page an IExternalPage. In the activateExternalPage(RequestCycle) method I call .getVisit() which seems to appropriately setup the session. I then use RequestCycle..getSession() to grab variables out of the existing session.
BTW, Remember to encode the link to the page so that it is stateful.
Joel
--__--__--
Message: 5
Date: Tue, 25 Feb 2003 10:10:39 -0800 (PST)
From: Stav <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Tapestry-developer] How to access session before page loads
Hi,
I am trying to integrate a prototype Tapestry app with
an existing web application that has already set
certain user specific parameters in the session.
The applications are in the same web context.
How would I go about accessing the session before the
Home page loads so that I can setup the Home page?
I am currently using Tapestry version 2.1.
I have tried using BasePage.getRequestCycle(), but
this object appears to be null at first page load.
Thanks in advance.
Cheers,
Stav.
