About Question enthuware.jwpv6.2.1092 :

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
gurpreet_asrgndu
Posts: 55
Joined: Thu Jan 03, 2013 7:51 am
Contact:

About Question enthuware.jwpv6.2.1092 :

Post by gurpreet_asrgndu »

i dont remember the question no. but in that question's explanation you said that the request implicit object referes to implementation of HttpServletRequest class.

so in this question's explanation i think it should be

page : PageContext

request : HttpServletRequest

session : HttpSession

application : ServletContext

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

Re: About Question enthuware.jwpv6.2.1092 :

Post by admin »

As per JSP section 1.8.2, "References to objects with request scope are stored in the request object."
Since HttpServletRequest extends ServletRequest, if you have a question that has HttpServletRequest as an option, then that is also correct. If you have both as options, ServletRequest is more correct.

HTH,
Paul.

lukenhung
Posts: 17
Joined: Fri Aug 14, 2015 9:35 am
Contact:

Re: About Question enthuware.jwpv6.2.1092 :

Post by lukenhung »

admin wrote:As per JSP section 1.8.2, "References to objects with request scope are stored in the request object."
Since HttpServletRequest extends ServletRequest, if you have a question that has HttpServletRequest as an option, then that is also correct. If you have both as options, ServletRequest is more correct.

HTH,
Paul.
Hey Paul,
As you said ServletRequest is more correct,so why the answer in enthuware.jwpv6.2.972 is HttpServletRequest ? I

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

Re: About Question enthuware.jwpv6.2.1092 :

Post by admin »

You are right. Fixed.
thank you for your feedback!
Paul.

lukenhung
Posts: 17
Joined: Fri Aug 14, 2015 9:35 am
Contact:

Re: About Question enthuware.jwpv6.2.1092 :

Post by lukenhung »

which one is correct now,Paul ? and how can I check the updated ?

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

Re: About Question enthuware.jwpv6.2.1092 :

Post by admin »

Sorry, I wasn't too clear. ServletRequest should be the correct one. The updated question bank will be uploaded to the download location. Once it is there, you will automatically be notified by ETS Viewer when you open the old question bank. It will also allow you to update your question bank.

-Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests