Servlet redirect
15,253
It continues execution.
It's not a return
, it just adds information to the response.
Author by
TGM
Updated on June 12, 2022Comments
-
TGM almost 2 years
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