resp.sendRedirect("/myurl");
req.getSession().setAttribute("foo", "bar");
In this case, do I have access to the foo attribute after the redirect?
On generally speaking, a servlet is completely executed before the redirect is made or it stops it’s execution after the redirect line?
Thanks
It continues execution.
It’s not a
return, it just adds information to the response.