-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ken,
Ken Bowen wrote: > -- when the app is running from webapps/myapp, one gets > request.getContextPath() = "/myapp" > > -- when the app is running from webapps/ROOT, the value of > request.getContextPath() is the empty string. This is expected behavior. > It's almost as if the value of request.getContextPath() is the value of > the Context 'path' attribute when the Context was stored under Host in > the old way. Yep, pretty much. The idea is that you can do something like: request.getContextPath() + "/bar/baz" and always get an absolute URI. If your context name is "foo", then you get "/foo/bar/baz". If you are running the root web app, you get "/bar/baz", which is expected (rather than, say, "//bar/baz"). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHC4sp9CaO5/Lv0PARApsTAJ4zeqq4M8LKMlVjrVj4ktxfxGBHbQCfQ9F2 efwFhRna9vTi/0p6W0e0ED0= =+aYX -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]