A web application may override the web container’s implementation classes.
A web application running in a J2EE product may override classes in the javax.* namespace.
A web application class loader may NOT override any classes in the java.* and javax.* namespaces.
Resources in the WAR class directory or in any of the JAR files within the library directory may be accessed using the J2SE semantics of getResource.
第1题:
In which three directories, relative to a web application’s root, may a tag library descriptor file reside when deployed directly into a web application?()
第2题:
Which the statement is true about web container session management()?
第3题:
Which the two about WAR files are true?()
第4题:
Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application. In which object can the data that A shares with B be stored?()
第5题:
You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()
第6题:
You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside in a subdirectory below the Web application's root directory. Users must not be able to navigate directly to these files in a Web browser unless they are members of the Accounting role. You need to write an ASP.NET HTTP handler that will use the FileAuthorizationModule class. Which form of authentication should you use?()
第7题:
WAR files must be located in the web application library directory.
WAR files must contain the web application deployment descriptor.
WAR files must be created by using archive tools to designed specifically for that purpose.
The web container must serve the content of any META-INF directory located in a WAR file.
The web container must allow access to resources in JARs in the web application library directory
第8题:
the web application deployment descriptor
the /META-INF/dependencies.xml file
the /META-INF/MANIFEST.MF manifest file
the /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath
第9题:
A web application may override the web container’s implementation classes
A web application running in a J2EE product may override classes in the javax.* namespace
A web application class loader may NOT override any classes in the java.* and javax.* namespace
Resources in the WAR class directory or in any of the JAR files within the library directory may be accessed using the J2SE semantics of getResource
Resources in the WAR class directory or in any of the JAR files within the library directory cannot be accessed using the J2SE semantics of getResource
第10题:
/WEB-INF/lib as a JAR file
/META-INF/lib as a JAR file
/classes as compiled class files
/WEB-INF/lib as compiled class files
/WEB-INF/classes as compiled class files
/META-INF/classes as compiled class files
第11题:
HttpSession
ServletConfig
ServletContext
HttpServletRequest
HttpServletResponse
第12题:
Include a listener directive in a JSP page
configure a listener in the TLD file using the
Include a
configure a listener in the application deployment descriptor, using the
Include a class implementing ServletContextListener as part of the web application deploymen
第13题:
In which two web application directories can dependent classes and libraries be located? ()
第14题:
Your web application requires the ability to load and remove web files dynamically to the web container’s filesystem. Which two HTTP methods are used to perform these actions?()
第15题:
In which two locations can library dependencies be defined for a web application? ()
第16题:
You are developing a Web control. The Web control captures user address information in a Web application. You create a class named AddressControl that inherits from CompositeControl. This control consists of child controls.You need to ensure that the child controls are properly output to the browser.Developers using your control must be able to set the appropriate text for labels. In addition, they must be able to pull user address information from the associated text boxes during postback. What should you do?()
第17题:
You are developing a Web control. The Web control captures user address information in a Web application. You create a class named AddressControl that inherits from CompositeControl. This control consists of child controls. You need to ensure that the child controls are properly output to the browser. Developers using your control must be able to set the appropriate text for labels. In addition, they must be able to pull user address information from the associated text boxes during postback. What should you do? ()
第18题:
/conf/web.xml
/WEB-INF/web.xml
/conf/server.xml
/META-INF/web.xml
/WEB-INF/rules.xml
/META-INF/server. Xml
第19题:
Create a single Web site that contains both Web applications.
Create two Web sites, one for each Web application.
Assign both Web applications to the same application pool.
Assign each Web application to its own application pool.
第20题:
/WEB-INF
/META-INF
/WEB-INF/tlds
/META-INF/tlds
WEB-INF/resources
/META-INF/resources
第21题:
Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.
If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.
The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.
第22题:
PUT
POST
SEND
DELETE
REMOVE
第23题:
/WEB-INF
/META-INF
/WEB-INF/tlds
/META-INF/tlds
/WEB-INF/resources
/META-INF/resources