> From: Chris Hall [mailto:[EMAIL PROTECTED] > Subject: RE: Multiple Contexts from single WAR > > How to have a servlet mapping the same as the context name? I want > http://localhost/<context> to invoke my servlet by default.
Pick one of the <welcome-file> names and map that to your servlet. For example: <servlet> <servlet-name>myServlet</servlet-name> <servlet-class>org.myPackage.myServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>myServlet</servlet-name> <url-pattern>/index.html</url-pattern> </servlet-mapping> The welcome file does not have to actually exist. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]