Page 1 of 1

About Question enthuware.jwpv6.2.873 :

Posted: Sat Jan 26, 2013 9:35 am
by harsh.sahajwani
The explanation says Option 3 is correct. However, getResource only returns a URL object to the resource mapped to the path. It does not retreive the file present at the path specified. That operation can be performed by getResourceAsStream method which returns InputStream object for the file present at the path specified and it contains the contents of the file in the form of InputStream. But getResourceAsStream method is not in question here, getResource is.

So, the question should be modified appropriately
OR
The number of correct options should be 1
OR
Option 3 should explicitly state that "If a jsp file is retrieved using getResourceAsStream method....".

Re: About Question enthuware.jwpv6.2.873 :

Posted: Sun Jan 27, 2013 9:01 am
by admin
You are right. This has now been fixed.
Thank you for your feedback!