That, I don't know unfortunately. Stuffing it into a public static
is always one approach though, albeit an end-run around the framework :).

        --- Pat

> -----Original Message-----
> From: John Coleman [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 02, 2005 6:02 PM
> To: Tapestry users
> Subject: Re: initializing services on startup
> 
> Thanks Pat, but any idea how we get that to HiveMind in some neat way?
> 
> John
> 
> ----- Original Message -----
> From: "Patrick Casey" <[EMAIL PROTECTED]>
> To: "'Tapestry users'" <[email protected]>
> Sent: Friday, December 02, 2005 11:13 PM
> Subject: RE: initializing services on startup
> 
> 
> >
> > If you're looking to find the name of the context directory, this
> > trick usually works:
> >
> > Step 1: Override ApplicationServlet
> > Step 2: In your init method do:
> >
> >
> > public void init(ServletConfig config) throws ServletException {
> > super.init(config);
> > String temp = config.getServletContext().getRealPath("");
> > fRootDirectory = temp;
> > Log.debug("Context directory = " + fRootDirectory);
> >
> > }
> >
> 
> 
> 
> ---------------------------------------------------------------------
> 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