Почему не срабатывает блок if ???
каким образом сессия существует?
@WebServlet(name = "WarmStar", urlPatterns = "/warmStar")
public class WarmStar extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession httpSession = request.getSession();
if(httpSession == null){
System.out.println("dsdsdsdsdsdsdsdsdsdsdsssdsdsdsdsdsds");
}
System.out.println("111 " + request.getContextPath() + " dddddd " + request.getRequestURI() + "rrr " + request.getServletPath());
System.out.println("TYTYTYYTY");
request.getRequestDispatcher("index.jsp").forward(request,response);
}
}