Here is how I do it:

@InjectObject("service:tapestry.globals.HttpServletRequest")
public abstract HttpServletRequest getRequest();

public ServletContext getServletContext() {
        return getRequest().getSession().getServletContext();
}

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com

On May 27, 2009, at 11:49 AM, Ivano Luberti wrote:

I have implemented a class that Implements IEngineService interface.

I need to get the ServletContext to finally get the realPath.

Anyone can tell me how to do that?

I have searched for a while without success


--
==================================================
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==================================================


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




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

Reply via email to