Thanks..
Work fine...
[]'s
Rondnei Couto
Shing Hing Man escreveu:
You can inject javax.servlet.ServletContext into
your serivce (I presume you meant a Tapestry service).
The use
servletContext.getRealPath("/")
to retrieve the context path.
A how-to on injecting javax.servlet.ServletContext
You can inject javax.servlet.ServletContext into
your serivce (I presume you meant a Tapestry service).
The use
servletContext.getRealPath("/")
to retrieve the context path.
A how-to on injecting javax.servlet.ServletContext
into a tapestry service is at
http://lombok.demon.co.uk/tapestry4Demo
From the Tapestry main Servlet (ApplicationServlet or directly from
GenricServlet) you can call getServletContext().getRealPath("/");
2006/7/25, Rodnei Couto <[EMAIL PROTECTED]>:
Hi list,
I'm creating a service. I need to know the context path to get an image
used in my service. How can I dis