我使用 tomcat + cpanel 。我的 jsps 和标签正确运行但无法运行 servlet。
我的 web.xml 内容是:
<servlet>
<servlet-name>Servlet1</servlet-name>
<servlet-class>pack1.Servlet1</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Servlet1</servlet-name>
<url-pattern>/Servlet1</url-pattern>
</servlet-mapping>
当请求 www.mydomain.com/Servlet1 得到这个错误(404):
Not Found
The requested URL /Servlet1 was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
请帮我。