... and this is a useful way of getting the actual (local) path that is equivalent to a specific URI.
String realPath = pageContext.getServletContext().getRealPath(uri);
File f = new File(realPath);
[where uri is something like "/index.html", "/WEB-INF/myconfig.xml", etc]
This is useful as it stops the need to reference local files in your webapp as (for example) c:\jakarta-tomcat-4.0\webapps\mywebapp\...
Regards
Simon
[This message has been edited by Simon Brown (edited August 28, 2001).]