单项选择题
Within the web application deployment descriptor, which defines a valid JNDI environment entry?()
A.
B.
C.
D.
点击查看答案
相关考题
-
单项选择题
Whichelementofthewebapplicationdeploymentdescriptordefinestheservletclassassociatedwithaservletinstance?()
A.<class><br/>
B.<webapp><br/>
C.<servlet><br/>
D.<codebase><br/>
E.<servlet-class> -
单项选择题
Given: 11.public class MyServlet extends HttpServlet { 12.public void service(HttpServletRequest request, 13.HttpServletResponse response) 14.throws ServletException, IOException { 15.// insert code here 16.} 17.} and this element in the web application’s deployment descriptor: <error-page> <error-code>302</error-code> <location>/html/error.html</location> </error-page> Which,inserted at line 15,causes the container to redirect control to the error.html resource?()
A.response.setError(302);
B.response.sendError(302);
C.response.setStatus(302);
D.response.sendRedirect(302);
E.response.sendErrorRedirect(302); -
多项选择题
You want to create a valid directory structure for your Java EE web application, and your application usestag files and a JAR file. Which three must be located directly in your WEB-INF directory(NOT in asubdirectory of WEB-INF)?()
A.The JAR file
B.A directory called lib
C.A directory called tags
D.A directory called TLDs
E.A directory called classes
F.A directory called META-INF
