which retrieves a URL to /WEB-INF/myconfig.xml within a web application?

Given an HttpSession session, a ServletRequest request, and a ServletContext context, which
retrieves a URL to /WEB-INF/myconfig.xml within a web application?

Given an HttpSession session, a ServletRequest request, and a ServletContext context, which
retrieves a URL to /WEB-INF/myconfig.xml within a web application?

A.
session.getResource(“/WEB-INF/myconfig.xml”)

B.
request.getResource(“/WEB-INF/myconfig.xml”)

C.
context.getResource(“/WEB-INF/myconfig.xml”)

D.
getClass().getResource(“/WEB-INF/myconfig.xml”)

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *