what's the difference between get/setAttribute()
when you call them from request and from getServletContext()
.
I noticed that you need
RequestDispatcher rd = request.getRequestDispatcher("/view.jsp");
rd.forward(request, response);
for the request to work, but you just need to navigate to another jsp or servlet in the application to use getServletContext().getAttribute()
.
But i don't understand what is going on behind.