P
phillip.s.powell
What is the best form of redirection to ensure that
request.getSession() data is not lost?
<code>
<pre>
// DO STUFF AND RETAIN IN request.getSession() in index.jsp
response.sendRedirect(forwardUrl);
</pre>
</code>
The moment you go to "forwardUrl":
<code>
<pre>
out.println(request.getSession().toString()); // YOU SEE A BRAND NEW
request OBJECT WITH NO SESSION DATA
</pre>
</code>
How do I prevent this? Is <jsp:forward page="<%= forwardUrl %>" /
> the best option or do you recommend another method?
Phil
request.getSession() data is not lost?
<code>
<pre>
// DO STUFF AND RETAIN IN request.getSession() in index.jsp
response.sendRedirect(forwardUrl);
</pre>
</code>
The moment you go to "forwardUrl":
<code>
<pre>
out.println(request.getSession().toString()); // YOU SEE A BRAND NEW
request OBJECT WITH NO SESSION DATA
</pre>
</code>
How do I prevent this? Is <jsp:forward page="<%= forwardUrl %>" /
> the best option or do you recommend another method?
Phil