ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Deploying Web Applications to Tomcat
Subject:   make it work with version 4.18 and above
Date:   2003-05-14 08:20:02
From:   hkubba
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


1 to 1 of 1
  1. make it work with version 4.18 and above
    2003-05-25 09:10:52  anonymous2 [View]

    • make it work with version 4.18 and above
      2003-06-19 02:58:58  anonymous2 [View]

1 to 1 of 1