tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: context path confusion [RequestDispatcher, servlet-mapping, MVC]
Date Sun, 03 Jun 2007 21:27:33 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Skijor,

Skijor wrote:
> <servlet-mapping>
>   <servlet-name>BootStrap</servlet-name>
>   <url-pattern>/</url-pattern>
> </servlet-mapping >

Note that by mapping '/' to your own servlet, you are overriding the
"default" servlet that usually serves requests for things like static
resources.

> This seems like a tomcat bug to me since I have simply substituted '/'
> for '/ixania' in both the url-pattern and the actual URL.

You should use a <welcome-file> instead of mapping '/' to your own servlet.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGYzJF9CaO5/Lv0PARAhjmAKCLzNTCM/ZjNYkaoP42AQETxIClLQCgpotb
3MwQHh0t2ynJ+BbTmmfau0I=
=TbTs
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message