j2EE高手急救! Servlet 路径问题 资源ID: …当action="/servlet/login"时转向的路径(400错误)http://localhost:8080/servlet/login当action="/game/servlet/login"时转向的路径是(HTTP Status 404 - /game/game/servlet/login错误)http://localhost:8080/game/game/servlet/logingame是我的虚拟路径,我的项目名叫gameweb.XML配置如下 This is the description of my J2EE component This is the display name of my J2EE component LoginServlet game.sverlets.LoginServlet//game.servlet是servlet所在的包 LoginServlet /servlet/login 开发工具是myeclipse解决后追加50分要怎么改才能提交到处理数据的servlet的真正路径http://localhost:8080/game/servlet/login呢?为什么(当action="servlet/login"时)login.jsp的绝对地址是http://localhost:8080/game/login.jsp而提交完之后转向的地址却是http://localhost:8080/servlet/login 呢? action="servlet/login" ← 上一篇: 下一篇: →