错误消息是这样的:
type Status report
message /MyJSPExample/servlet/moreservlets.HelloServlet3
description The requested resource (/MyJSPExample/servlet/moreservlets.HelloServlet3) is not available.
我把HelloServlet3.java和ServletUtilities.java放在
E:\Apache Software Foundation\Tomcat 5.0\webapps\我自己的程序目录\WEB-INF\classes
并把这两个java文件打包进moreservlets文件夹当中
在web.xml中这样注册:
<servlet>
<servlet-name>HelloServlet3</servlet-name>
<servlet-class>HelloServlet3</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloServlet3</servlet-name>
<url-pattern>/servlet/moreservlets/HelloServlet3</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ServletUtilities</servlet-name>
<servlet-class>ServletUtilities</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ServletUtilities</servlet-name>
<url-pattern>/servlet/moreservlets/ServletUtilities</url-pattern>
</servlet-mapping>
请问是不是我的部署有问题,为何会出现上述错误?谢谢