( EL ${_session}, ), . - . , , , ? ? ? , / , . , cookie, cookie? HttpServletResponse#encodeRedirectURL(), URL- .
response.sendRedirect(response.encodeRedirectURL("page2.jsp"));
: , , :
System.out.println("Session ID: " + session.getId());
JSP:
<p>Session ID: ${pageContext.session.id}</p>
HTTP, Firebug < i2 > . HTTP- Set-Cookie , HTTP- Cookie / cookie, JSESSIONID , , .
2:, , , , , Tomcat 6 Glassfish 3, . , Appengine, cookie .
As proof, here is a screen that proves that Glassfish sets a cookie with Set-Cookie and , by triggering a redirect to Location:

source
share