In doFilter method, we use the code below to access to session :
HttpServletRequest request = (HttpServletRequest) servletRequest;
But, "HttpServletRequest" extends "servletRequest", so theoretically we should not be able to put father in son.
In doFilter method, we use the code below to access to session :
HttpServletRequest request = (HttpServletRequest) servletRequest;
But, "HttpServletRequest" extends "servletRequest", so theoretically we should not be able to put father in son.