Using embedded tomcat, this code works:
Servlet:
String test = \"test\"; request.setAttribute(\"test\", test); request.getRequestDispatc
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