You likely want to inject the ServletContext into your page.  In T4.0.2, you
need to explicitly reference the tapestry.globals name (don't recall it off
hand -- check the HiveDoc).  In Tapestry 4.1+, you don't need to inject it
by name, as it will be auto-wired.

-- 
Kevin


On 11/12/07 1:35 PM, in article [EMAIL PROTECTED],
"Istvan Szucs" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> How can I get the real context path in Tapestry 4.0.2?
> 
> It is not enough:
> public void test(IRequestCycle cycle) {
> String contextPath = cycle.getEngine().getInfrastructure().getContextPath();
> }
> 
> Best regards,
> Stef
> 
> ____________________________________________________________
> GET FREE 5GB EMAIL - Check out spam free email with many cool features!
> Visit http://www.inbox.com/email to find out more!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to