网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Which two are true regarding a web application class loader?()
- A、A web application may override the web container’s implementation classes.
- B、A web application running in a J2EE product may override classes in the javax.* namespace.
- C、A web application class loader may NOT override any classes in the java.* and javax.* namespaces.
- D、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.
参考答案
更多 “Which two are true regarding a web application class loader?()A、A web application may override the web container’s implementation classes.B、A web application running in a J2EE product may override classes in the javax.* namespace.C、A web application class loader may NOT override any classes in the java.* and javax.* namespaces.D、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.” 相关考题
考题
Which the two are true regarding a web application class loader?()A、 A web application may override the web container’s implementation classesB、 A web application running in a J2EE product may override classes in the javax.* namespaceC、 A web application class loader may NOT override any classes in the java.* and javax.* namespaceD、 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 getResourceE、 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
考题
A developer wants a web application to be notified when the application is about to be shut down. Which two actions are necessary to accomplish this goal?()A、Include a listener directive in a JSP pageB、configure a listener in the TLD file using the elementC、Include a element in the web application deployment descriptorD、configure a listener in the application deployment descriptor, using the elementE、Include a class implementing ServletContextListener as part of the web application deploymen
考题
You are migrating a solution to Windows Azure. The solution includes a web application and a business logic layer. The web application runs on three dual-core servers. The business logic layer runs on two quad-core servers. The Windows Azure application must match or exceed the current hardware specifications. You need to recommend role instance sizes that minimize cost. What should you recommend?()A、 Small for the web application and Medium for the business logic layerB、 Small for the web application and Large for the business logic layerC、 Medium for the web application and Large for the business logic layerD、 Large for the web application and Extra Large for the business logic layer
考题
Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()A、 /conf/web.xmlB、 /WEB-INF/web.xmlC、 /conf/server.xmlD、 /META-INF/web.xmlE、 /WEB-INF/rules.xmlF、 /META-INF/server. Xml
考题
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?()A、 /WEB-INFB、 /META-INFC、 /WEB-INF/tldsD、 /META-INF/tldsE、 WEB-INF/resourcesF、 /META-INF/resources
考题
In which two web application directories can dependent classes and libraries be located? ()A、 /WEB-INF/lib as a JAR fileB、 /META-INF/lib as a JAR fileC、 /classes as compiled class filesD、 /WEB-INF/lib as compiled class filesE、 /WEB-INF/classes as compiled class filesF、 /META-INF/classes as compiled class files
考题
Which the statement is true about web container session management()?A、 Access to session-scoped attributes is guaranteed to be thread-safe by the web container.B、 To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.C、 If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.D、 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.
考题
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?()A、PUTB、POSTC、SENDD、DELETEE、REMOVE
考题
Which the two about WAR files are true?()A、 WAR files must be located in the web application library directory.B、 WAR files must contain the web application deployment descriptor.C、 WAR files must be created by using archive tools to designed specifically for that purpose. D、 The web container must serve the content of any META-INF directory located in a WAR file.E、 The web container must allow access to resources in JARs in the web application library directory
考题
In which two locations can library dependencies be defined for a web application? ()A、 the web application deployment descriptorB、 the /META-INF/dependencies.xml fileC、 the /META-INF/MANIFEST.MF manifest fileD、 the /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath
考题
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?()A、 HttpSessionB、 ServletConfigC、 ServletContextD、 HttpServletRequestE、 HttpServletResponse
考题
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?()A、Override the EnsureChildControls method of the base class. Add the child controls to the base container.B、Override the CreateControlCollection method of the base class. Add the child controls to the ControlCollection classC、Override the CreateChildControls method of the base class. Add the child controls to the base container.D、Override the DataBindChildren method of the base class. Add the child controls to the ControlCollection class.
考题
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?()A、Ensure that the Web control inherits from the WebControl class.B、Ensure that the Web control inherits from the Control class.C、Ensure that the Web control inherits from the CompositeControl class.D、Ensure that the Web control inherits from the UserControl class.
考题
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? ()A、Override the EnsureChildControls method of the base class. Add the child controls to the base container.B、Override the CreateControlCollection method of the base class. Add the child controls to the ControlCollection class.C、Override the CreateChildControls method of the base class. Add the child controls to the base container.D、Override the DataBindChildren method of the base class. Add the child controls to the ControlCollection class.
考题
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?()A、AnonymousB、CertificateC、FormsD、Microsoft Windows Integrated Security
考题
单选题Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()A
/conf/web.xmlB
/WEB-INF/web.xmlC
/conf/server.xmlD
/META-INF/web.xmlE
/WEB-INF/rules.xmlF
/META-INF/server. Xml
考题
多选题You are a systems administrator responsible for managing a Windows Server 2008 Web Server Currently,there are no Web sites configured on the server. You need to configure the server to host two Web applications: Engineering App and Sales App. Both Web applications must be accessible by using HTTPport 80 without the use of host headers. Also, you must protect against problems in one Web applicationaffecting the performance or reliability of the other Web application. Which two steps should you take tomeet these requirements?()ACreate a single Web site that contains both Web applications.BCreate two Web sites, one for each Web application.CAssign both Web applications to the same application pool.DAssign each Web application to its own application pool.
考题
多选题In which two locations can library dependencies be defined for a web application? ()Athe web application deployment descriptorBthe /META-INF/dependencies.xml fileCthe /META-INF/MANIFEST.MF manifest fileDthe /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath
考题
多选题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?()A/WEB-INFB/META-INFC/WEB-INF/tldsD/META-INF/tldsEWEB-INF/resourcesF/META-INF/resources
考题
多选题Which the two are true regarding a web application class loader?()AA web application may override the web container’s implementation classesBA web application running in a J2EE product may override classes in the javax.* namespaceCA web application class loader may NOT override any classes in the java.* and javax.* namespaceDResources in the WAR class directory or in any of the JAR files within the library directory may be accessed using the J2SE semantics of getResourceEResources 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
考题
单选题Which statement is true about web container session management?()A
Access to session-scoped attributes is guaranteed to be thread-safe by the web container.B
To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.C
If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.D
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.
考题
多选题In which two web application directories can dependent classes and libraries be located? ()A/WEB-INF/lib as a JAR fileB/META-INF/lib as a JAR fileC/classes as compiled class filesD/WEB-INF/lib as compiled class filesE/WEB-INF/classes as compiled class filesF/META-INF/classes as compiled class files
考题
多选题Which two are true regarding a web application class loader?()AA web application may override the web container’s implementation classes.BA web application running in a J2EE product may override classes in the javax.* namespace.CA web application class loader may NOT override any classes in the java.* and javax.* namespaces.DResources 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.
考题
多选题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?()APUTBPOSTCSENDDDELETEEREMOVE
考题
单选题Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()A
classbr/B
webappbr/C
servletbr/D
codebasebr/E
servlet-class
考题
单选题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?()A
HttpSessionB
ServletConfigC
ServletContextD
HttpServletRequestE
HttpServletResponse
考题
多选题In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()A/WEB-INFB/META-INFC/WEB-INF/tldsD/META-INF/tldsE/WEB-INF/resourcesF/META-INF/resources
热门标签
最新试卷