tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Guo <cool_...@yahoo.com>
Subject RE: Manual servlet deployment problems on 4.1.18
Date Thu, 27 Feb 2003 06:04:56 GMT

 
 Steve Hole <steve.hole@messagingdirect.com> wrote:
This implies that the element defines the name of the 
web application?
------ what do you mean? the webapp is defined by the name of the folder ("test")

So what does the web.xml look like for the above? Something like:
<servlet>
     <servlet-name>simple</servlet-name>
     <servlet-class>Simple></servlet-class>
  </servlet>

  <servlet-mapping>
     <servlet-name>simple</servlet-name>
     <url-pattern>/welcomeme.xxx</url-pattern>
  </servlet-mapping>


then you will invoke by
http://localhost:8080/test/servlet/Simple - from servlet class
http://localhost:8080/test/servlet/simple -  from <servlet> tag
http://localhost:8080/test/welcomeme.xxx - from <servlet-mapping> tag




---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message