Re: get docbase / context root from within application

2007-05-09 Thread Luke Vanderfluit
Hi. 10May2007 @ 15:14 Luke Vanderfluit thusly spake > Hi. > > I have a jsp page and want to get hold of the absolute path to the context > root /doc base directory. > > > I have my tomcat application deployed under /foo/bar/tomcat/webapps/ROOT/ > > This is the path I want to retrieve program

get docbase / context root from within application

2007-05-09 Thread Luke Vanderfluit
Hi. I have a jsp page and want to get hold of the absolute path to the context root /doc base directory. I have my tomcat application deployed under /foo/bar/tomcat/webapps/ROOT/ This is the path I want to retrieve programmatically rather than hard code it. Is there a way to do this? Thanks