RE: Context to path

2004-02-27 Thread Sjoerd van Leent
. -Oorspronkelijk bericht- Van: Asim Alp [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 27 februari 2004 19:04 Aan: Tomcat Users List Onderwerp: Re: Context to path What I usually do is this: pageContext.getServletContext().getContext("/myContext").getRealPath("/ myfile.jsp")));

RE: Context to path

2004-02-27 Thread Shapira, Yoav
Howdy, >Every web-app is in a context. Every context is in a path on the system. The second assertion is false. A web application may be a packed WAR whose contents reside only in memory. If you want to break portability, you get use ServletContext#getRealPath("/") to get the docBase of your w

Re: Context to path

2004-02-27 Thread Asim Alp
What I usually do is this: pageContext.getServletContext().getContext("/myContext").getRealPath("/ myfile.jsp"))); Asim Alp Educational Networks 55 Broad Street, 10th Floor New York, NY 10004 www.educationalnetworks.net Tel: +1 (212) 269-0200 Fax: +1 (212) 269-1446 On Feb 27, 2004, at 1:00 PM, S