servlet 直接传递List对象
package cn.itcast.estore.web.servlet; import java.io.IOException; import java.sql.SQLException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import cn.itcast.estore.domain.Order; import cn.itcast.estore.domain.User; import cn.itcast.estore.service.OrderService; public class ShowOrderServlet extends HttpServlet { @Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // 1.获取当前用户