Try the following in your web.xml:

<web-app>
   <servlet>
       <servlet-name>MemberAuth</servlet-name>
       <servlet-class>MemberAuth</servlet-class>
   </servlet>
   <servlet>
       <servlet-name>MemberAuth2</servlet-name>
       <servlet-class>MemberAuth2</servlet-class>
   </servlet>
   <servlet-mapping>
       <servlet-name>MemberAuth</servlet-name>
       <url-pattern>/login1</url-pattern>
   </servlet-mapping>   
   <servlet-mapping>
       <servlet-name>MemberAuth2</servlet-name>
       <url-pattern>/login2</url-pattern>
   </servlet-mapping>
</web-app>

http://localhost:8080/myAps/login1 will run your MemberAuth servlet class
http://localhost:8080/myAps/login2 will run your MemberAuth2 servlet class

hth

Andy

-----Original Message-----
From: kim teri [mailto:[EMAIL PROTECTED]]
Sent: 06 January 2003 12:05
To: [EMAIL PROTECTED]
Subject: 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:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to