照着老师代码敲得,但是跳转后显示404错误
xml配置如下 <servlet> <servlet-name>HelloServlet</servlet-name> <servlet-class>servlet.HelloServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>HelloServlet</servlet-name> <url-pattern>/servlet/HelloServlet</url-pattern> </servlet-mapping> index.jsp如下: <body> <h1>第一个Servlet小例子</h1> <hr> <a href="servlet/HelloServlet">Get方式请求HelloServlet</a> </body> 错误如下: [object Object] 点击跳转显示404错误 [object Object]