多项选择题
Which two from the web application deployment descriptor are valid?()
A.
B.
C.
D.
相关考题
-
多项选择题
You want to create a valid directory structure for your Java EE web application, and you want to put yourweb application into a WAR file called MyApp.war. Which two are true about the WAR file?()
A.At deploy time, Java EE containers add a directory called META-INF directly into the MyApp directory.
B.At deploy time, Java EE containers add a file called MANIFEST.MF directly into the MyApp directory.
C.It can instruct your Java EE container to verify, at deploy time, whether you have properly configured your application’s classes.
D.At deploy time, Java EE containers add a directory call META-WAR directly into the MyApp directory. -
单项选择题
Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attributein B’s request object contains the URI of the original request received by servlet A?()
A.REQUEST_URI
B.javax.servlet.forward.request_uri
C.javax.servlet.forward.REQUEST_URI
D.javax.servlet.request_dispatcher.request_uri
E.javax.servlet.request_dispatcher.REQUEST_URI -
单项选择题
Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here26. } Which should you insert at line 25 to properly invoke the next filter in the chain,or the target servlet if thereare no more filters?()
A.chain.forward(request, response);
B.chain.doFilter(request, response);
C.request.forward(request, response);
D.request.doFilter(request, response);
