About Question enthuware.jwpv6.2.1095 :
Posted: Tue Sep 09, 2014 8:59 am
Is there a typo in option 1? Is it supposed to call 'forward' rather than 'dispatch'?
The note in the explanation says:req.getRequestDispatcher("errorpage.jsp").dispatch(req, res, HttpServletResponse.SC_FORBIDDEN);
Apart from the fact that RequestDispatcher doesn't have a dispatch(), the above explanation doesn't make sense unless it calls 'forward'.1. Dispatching a request to another JSP will not send a HTTP status message to the client. Also, the forward method of RequestDispatcher does not take 3rd argument.