Page 1 of 1

About Question enthuware.jwpv6.2.1095 :

Posted: Tue Sep 09, 2014 8:59 am
by Ambiorix
Is there a typo in option 1? Is it supposed to call 'forward' rather than 'dispatch'?
req.getRequestDispatcher("errorpage.jsp").dispatch(req, res, HttpServletResponse.SC_FORBIDDEN);
The note in the explanation says:
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.
Apart from the fact that RequestDispatcher doesn't have a dispatch(), the above explanation doesn't make sense unless it calls 'forward'.

Re: About Question enthuware.jwpv6.2.1095 :

Posted: Tue Sep 09, 2014 8:25 pm
by admin
You are right. It is a wrong option but the explanation doesn't match it. Fixed.

thank you for your feedback!