Quoting David Wall <[EMAIL PROTECTED]>: > > contextPath = path.substring(0, path.lastIndexOf("/")); > > contextPath = contextPath.substring(contextPath.lastIndexOf("/") + > 1); > > This looks like a reasonable hack, but isn't it true that the filesystem > path and the context path don't have to match? For example, I can map "" to > /webapps/ROOT can't I? Or map "/myapp" to "/webapps/somethingelse"? > > David
The path returned by context.getResource("/") has nothing whatsoever to do with the file system. By your logic, my app located at "C:\apps\myappbuld\target\war", using said method above, would end up with the value "war". Yet, it ends up with whatever I set the "path" to in my context configuration file. If you want to continue to challenge this, do the test yourself. If you find something different than what I describe, let me know. Jake --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]