严重: Servlet.service() for servlet [RegServlet] in context with path [/ShoppingCart] threw exception
java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:482)
at com.servlets.RegServlet.doPost(RegServlet.java:56)
响应被提交之后不能调用重定向函数!
这里有个相同问题的博客,你参考下是不是这么回事:http://blog.csdn.net/lindev/article/details/23952265
你自己不都写上了吗?响应被提交后不能调用重定向函数。