Page 1 of 1

About Question enthuware.jwpv6.2.873 :

Posted: Thu Feb 20, 2014 7:04 am
by ramy6_1
Hello ,

I think also option 3 is correct

"If a jsp file is retrieved, the jsp code contained will be returned as it is."

Yes getResource() returns URL object , but we can use this object get the content of the file , then the jsp code contained will be returned as it is

Please advice.

Re: About Question enthuware.jwpv6.2.873 :

Posted: Thu Feb 20, 2014 8:25 am
by admin
Yes, but using the URL to retrieve the content is a different thing and is unrelated to the question. If you use that logic, you can say anything such as getResource() can be used to save data to the database because you can use getResource to get a url, and that url to get a jsp page and that jsp page to save data to the database :)

HTH,
Paul.