单项选择题
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")
点击查看答案
相关考题
-
单项选择题
You are creating a web form with this HTML: 11.<form action="sendOrder.jsp"> 12.<input type="text" name="creditCard"> 13.<input type="text" name="expirationDate"> 14.<input type="submit"> 15.</form> Which HTTP method is used when sending this request from the browser?()
A.GET
B.PUT
C.POST
D.SEND
E.FORM -
多项选择题
WhichtwoarecharacteristicsoftheServiceLocatorpattern?()
A.It encapsulates component lookup procedures.
B.It increases source code duplication and decreases reuse.
C.It improves client performance by caching context and factory objects.
D.It degrades network performance due to increased access to distributed lookup services. -
单项选择题
A developer has created a special servlet that is responsible for generating XML content that is sent to adata warehousing subsystem. This subsystem uses HTTP to request these large data files, which are compressed by the servlet to save internal network bandwidth. The developer has received a request frommanagement to create several more of these data warehousing servlets. The developer is about to copyand paste the compression code into each new servlet. Which design pattern can consolidate thiscompression code to be used by all of the data warehousing servlets?()
A.Facade
B.View Helper
C.Transfer Object
D.Intercepting Filter
E.Composite Facade
