A: There is very little difference between the
ServletRequestversions of this method, the
RequestDispatcheryou get operates in exactly the same way. However, the
ServletRequestmethod also allows you to use a path argument that is relative to the “current” resource, starting with “./Example.jsp” or “../Example.jsp”. The
getRequestDispatchermethod should only be used for paths relative to the application root, starting with “/Example.jsp”.