Hi,
Thank you, I forgot this injection.
Best regards,
Stef
> -Original Message-
> From: [EMAIL PROTECTED]
> Sent: Mon, 12 Nov 2007 11:28:22 -0800 (PST)
> To: users@tapestry.apache.org
> Subject: Re: [T4] Context real path
>
> Have you tried the following ?
Have you tried the following ?
@InjectObject(service:tapestry.globals.ServletContext")
public abstract ServletContext getServletContext();
Shing
--- Istvan Szucs <[EMAIL PROTECTED]> wrote:
> Hi,
>
> How can I get the real context path in Tapestry
> 4.0.2?
>
> It is not enough:
> pub
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
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 5