About Question enthuware.jwpv6.2.1095 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Ambiorix
Posts: 25
Joined: Thu Jan 10, 2013 8:45 am
Contact:

About Question enthuware.jwpv6.2.1095 :

Post 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'.

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.1095 :

Post by admin »

You are right. It is a wrong option but the explanation doesn't match it. Fixed.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests