Women in Technology

Hear us Roar



Article:
  Deploying Web Applications to Tomcat
Subject:   Cant get this example to work on later version
Date:   2003-05-14 08:18:59
From:   hkubba
Response to: Cant get this example to work on later version

An important addition is to be added here: in the web.xml we must have 2 tags inside the < web-app> tag, those are <servlet> and <servlet-mapping> so when the article says :


<servlet>
<servlet-name>login</servlet-name>
<servlet-class>com.onjava.login</servlet-class>
</servlet>


another block should be added:


<servlet-mapping>
<servlet-name>login</servlet-name>
<url-pattern>/login</url-pattern> < !-- note it is /login not login -->
</servlet-mapping>


this will make it work