everyone
发贴: 3
|
于 2005-03-22 19:45
我按网上那个教程装完后 测试8080就一切正常 但是测试HelloWorld那个servlet的时候 就出现如下信息
HTTP Status 404 - /servlet/HelloWorld -------------------------------------------------------------------------------- type Status report message /servlet/HelloWorld description The requested resource (/servlet/HelloWorld) is not available. -------------------------------------------------------------------------------- Apache Tomcat/5.0.28
是我在web.xml的添加不正确还是什么? 下面这段的正确完整添加格式是怎样的? <servlet> <servlet-name>HelloWorld</servlet-name> <servlet-class>HelloWorld</servlet-class> </servlet> <servlet-mapping> <servlet-name>HelloWorld</servlet-name> <url-pattern>/servlet/helloworld</url-pattern> </servlet-mapping>
|