Re: virtual host getRealPath

2006-11-05 Thread Peter Warren
Chris, The application is an image gallery. I want to be able to drop images into directories anywhere underneath the gallery webapp directory and have the images automatically displayed as thumbnails in a table. Users can click on a thumbnail for the full-size image. I have an

Re: virtual host getRealPath

2006-11-04 Thread Peter Warren
Hi Chris, Thanks for your response. After poking around a little more, it seems that the call application.getRealPath(request.getServletPath()) provides the proper local file path for me. Any reason not to use that? Peter Christopher Schultz [EMAIL PROTECTED] wrote: Peter, I'm

virtual host getRealPath

2006-11-03 Thread Peter Warren
I'm trying to figure out why I get repeated directory names when calling application.getRealPath(request.getRequestURI()) from an index.jsp file. Clearly there's something about virtual hosts and contexts that I'm missing. Using Tomcat 5.5 6.0 in standalone mode under Windows XP, I see the

Re: virtual host getRealPath

2006-11-03 Thread Christopher Schultz
Peter, I'm trying to figure out why I get repeated directory names when calling application.getRealPath(request.getRequestURI()) from an index.jsp file. Clearly there's something about virtual hosts and contexts that I'm missing. I suppose you /could/ do this, but usually URIs and directory