-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Konstantin,
On 4/24/13 4:46 PM, Konstantin Kolinko wrote: > No. With the following pattern requesting the "../foo/bar" URI > above results in 404 for me. (In current 7.0.x, should not be > different from 7.0.39). > <url-pattern>/servlets/servlet/RequestInfoExample</url-pattern> > >>> Adding an extra "/" works correctly. > > My "adding" here is "adding to request URI in web browser", . > http://localhost:8080/examples/servlets/servlet/RequestInfoExample > http://localhost:8080/examples/servlets/servlet/RequestInfoExample/ With > clean 7.0.39: http://localhost:8080/examples/servlets/servlet/RequestInfoExample I get the example page with pathInfo=null http://localhost:8217/examples/servlets/servlet/RequestInfoExample/ I also get the example page with pathInfo=/ My question is why the top url (with no trailing /) is getting the request at all, given the url-pattern in web.xml: <servlet-mapping> <servlet-name>RequestInfoExample</servlet-name> <url-pattern>/servlets/servlet/RequestInfoExample/*</url-pattern> </servlet-mapping> The way I read that, the trailing "/*" is being interpreted as "*". Am I missing something? Why does /servlets/servlet/RequestInfoExample not require a trailing "/" to be dispatched to that servlet? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJReVzNAAoJEBzwKT+lPKRYJM4P/1ZW3zOJMm5qLXWgFCIMZLKt 4h3176dZSPtBnvup0b8IRImLTJhMpHLyFGEbAh9ZCE4AaTbb0o7EiwwpE++oIu9M SKzaF0EdZhA9h7/3MpVw6jF5K9Jf7weBbEHC7VhDXYoBMmfH0WRQ6n+wFsT+H3+W k0oXlvC42BRkT+bOGCm5g9gd7XIflqtZ9kCG6bpL7dlvL614b4HTWARNVpFRJrZ9 VvC/sCo2WiJd+cbG2XURRQCHhdfVeaL6ndaL6qYVvVheNFslXWw997EcKxwFpd88 UtjPvDiBNjB1l9TqFVU/Qntrv0j+NMVlQzIh13lsqLgpm+MWZ2tBbP72ZzY5tSWg QIV4+qYhL5YTrN8+Y7aLrr0qovjvXQMZCtxTxYJWJ1fuNswHeArO66vJUIvxce1O fePVIGI3PpWjzakmBPUJKyp5yiRRlGT9Cw7cqBV9wtMufyYLMBtebVoq+nntAN9q UfTQh13++XYjDFYqkDNdaXbbS7ebaL2a/Q2017GYLvxmrNOswUFbLDZvPuV4AJY6 5GvbNWAC8LnK0tDskp/3N4R7fqSpoi05xd72SCr45ud6Sbz893/r2W1cEPSl7Fpw LEUw1euiWh2yzTHILOuCfDvuPa0XU4qmACh1wnJlfqAzvrlV6Od+Vixa8bO+quQx mS4RmVAYKOfyWgYKUDBX =qAan -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org