Given an HttpSession session,a ServletRequest request,and a ServletContext context,which retrieves aURL 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")
正确答案:C
答案解析:有
微信扫一扫手机做题