Hello. Please help me solve the problem. I need the servlet to forward the user to the specified page. For this I use
req.getRequestDispatcher("/demo/new.jsp").forward(req, resp); However, I do not throw on this page. Using
resp.sendRedirect("/demo/new.jsp"); - everything is working. However, I will need to get some session data. Why does getRequestDispatcher not start?