You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/08/22 10:50:38 UTC
DO NOT REPLY [Bug 11919] New: -
Can't create servlet-mapping of "/" (not "/*")
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11919>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11919
Can't create servlet-mapping of "/" (not "/*")
Summary: Can't create servlet-mapping of "/" (not "/*")
Product: Tomcat 4
Version: 4.0.4 Final
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Webapps:Administration
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: helium_wong@hotmail.com
web.xml:
--begin--
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>Demo</servlet-name>
<servlet-class>Demo</ervlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Demo</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
--end--
I would like to map "http://host/context" to the Demo servlet by using the
above web.xml. But, it seems that all the request to the above context will be
map to Demo too (e.g., http://host/context/foo.html will be map to Hello too)!
The "/" url-pattern just act like "/*".
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>