Câu 70: GSSP-Java: GIAC Secure Software Programmer-Java
Which of the following syntaxes can be used to retrieve a URL to a resource specified as WEBINF/example/sessionObject.txt?Note. Assume that session is an instance of the HttpSession interface, request is an instance of the HttpServletRequest interface, and context is an instance of the ServletContext interface.
Nội dung câu hỏi
Which of the following syntaxes can be used to retrieve a URL to a resource specified as WEBINF/example/sessionObject.txt?Note. Assume that session is an instance of the HttpSession interface, request is an instance of the HttpServletRequest interface, and context is an instance of the ServletContext interface.
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. context.getResource ("/example/sessionObject.txt")
- B. session.getResource ("/WEB-INF/example/sessionObject.txt")
- C. request.getResource ("/WEB-INF/example/sessionObject.txt")
- D. context.getResource ("WEB-INF/example/sessionObject.txt")
- E. context.getResource ("/WEB-INF/example/sessionObject.txt") — đáp án hiện tại
- F. request.getResource ("WEB-INF/example/sessionObject.txt")
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.