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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With