servlet not forwarding session attribute to jsp

后端 未结 2 1024
日久生厌
日久生厌 2021-01-24 12:19

Using embedded tomcat, this code works:

Servlet:

String test = \"test\";
request.setAttribute(\"test\", test);
request.getRequestDispatc         


        
2条回答
  •  不知归路
    2021-01-24 12:29

    You may want to compare the session id in the servlet and the jsp. If they are different maybe check your session and cookie configuration in tomcat

提交回复
热议问题