Servlet向JSP传值问题
Servlet中:
request.setAttribute("ReportA",ReportA);
request.setAttribute("ReservationB",ReservationA);
RequestDispatcher dispatcher = request.getRequestDispatcher("ReportWrite.jsp");
dispatcher.forward(request, response);
JSP中:
Treservation ReservationB= (Treservation)request.getSession().getAttribute("ReservationB");
Treport reportA= (Treport)request.getSession().getAttribute("reportA");
检查收到的值一直是NULL啊! 求助~~ Servlet JSP
[解决办法]
哪个值为空呀?reportA吗?我看你取的名称都不对
Treport reportA= (Treport)request.getSession().getAttribute("reportA");
你存的是大写的呀