action= /examples/ servlets /ShoppingServlet"http://localhost:8000 /examples/ jsp /ShoppingServlet
解决方案 »
- graphics2d 与 web 结合时能不能也用MVC模式??
- weblogic 开发模式下,插入正常;部署后出现问题hibernate +webwork +sqlserver20000
- JAVA 通信方面的问题?请高手指点
- 难道在Action外不能使用struts配置的datasource?
- hibernate如何设计用户--邮件的对应关系
- 关于上传文件的问题
- java-求助:我提供服务器的接口和函数方法,求高手帮我调回对方服务器的值
- Servlet的简单问题,不解
- 大家讨论一下,带关键字的查询分页有好种好的方法?
- 怎样只刷新一次
- 关于JSP在TOMCAT下的BEAN运行路径的问题
- 文件上传限制--JavaSmartUpload组件
http://localhost:8000/yourSite/examples/jsp/ShoppingServlet
http://localhost:8000/examples/jsp/ShoppingServlet
错了,应是
http://localhost:8000/examples/servlets/ShoppingServlet
我已经修改了web.xml,现在出现的问题是货物不能加进购物车!servlet是否被正确调用还没有被证实,我如何知道servlet被执行了呢?我用System.out.println("****");控制台没有任何东西打出,但是那个空白也已经没有了啊,说明又是正确的现象啊
请问各位:我的servlet哪里有问题,再次感谢解答的朋友!!!
HTTP Status 405 - HTTP method GET is not supported by this URL
The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).
或者如 pengji所言,doGet()方法直接调用doPost()