tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steffen Heil" <li...@steffen-heil.de>
Subject AW: Servlet mapping problem
Date Wed, 29 Sep 2004 09:43:33 GMT
Hi

> I wrote a servlet with mapping as / . But when it is forwarded to
subdirectory it is coming to same servlet and executing in a loop.

You cannot map a single url. Tomcat only maps prefixes. So, you cannot map
"/" with tomcat. (Resin can, but this is another story.)
Here is a workaround:
Map "/root" as a servlet and define "root" as world welcome-file (see docs).
Depending on the tomcat version in use, you need to create a empty file
named "root".

> Remember this is a Struts list.

Nope.

Regards,
  Steffen

Mime
View raw message