Re: Context path

2006-07-25 Thread Rodnei Couto
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

Re: Context path

2006-07-25 Thread Shing Hing Man
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

Re: Context path

2006-07-25 Thread Blackwings
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