You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by kim teri <ki...@yahoo.com> on 2003/01/06 13:05:07 UTC
Mapping an external folder!
Hi all,
Am want to be running my servlets from C:\myAps and
below is how i've configured Server.xml and web.xml in
C:\myAps\WEB-INF\web.xml.
Problem: I cannot add more servlet mappings to the
web.xml. I have to delete one to test the other! How
can i add/map all my servlets e.g
http://localhost:8080/myAps/servletname1...servletname2..
without removing MemberAuth for me to run
MemberAuth2??
Server.xml
<Context path="\myAps" docBase="C:\myAps" debug="0"
reloadable="true" />
Here is the setup in the etc/web.xml file
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>MemberAuth</servlet-name>
<servlet-class>MemberAuth</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MemberAuth</servlet-name>
<url-pattern>/login2</url-pattern>
</servlet-mapping>
</web-app>
Thanx
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>