You have to define not conflicting url-pattern values (which is the case in
your example)
Oleg Lebedko
Wireless Networks, Technology Development
2920 Matheson Blvd. E., F7
Mississauga, ON L4W 5J4
* (905) 282 - 3263 [150 - 3263]
* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: Edmund Cheung [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, November 23, 2000 7:44 AM
To: Orion-Interest
Subject: how to use servlet-mapping
Hi,
If I have more than one servlet defined in the web.xml file, how do
I use
servlet-mapping ? Based on the following setting, the program always
calls
the UserManagerController.
<servlet>
<servlet-name>MainAdminController</servlet-name>
<description>Main controller</description>
<servlet-class>admin.servlet.MainAdminController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MainAdminController</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>UserManagerController</servlet-name>
<description>User manager controller</description>
<servlet-class>admin.servlet.UserManagerController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UserManagerController</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
Thanks,
Edmund