Which implicit object is used in a JSP page to retrieve values associated with entries inthe deployment descriptor?()A、ConfigB、RequestC、SessionD、Application
Which implicit object is used in a JSP page to retrieve values associated with
- A、Config
- B、Request
- C、Session
- D、Application
相关考题:
WhichimplicitobjectisusedinaJSPpagetoretrievevaluesassociatedwithentriesinthedeploymentdescriptor?() A.ConfigB.RequestC.SessionD.Application
某JSP中有如下代码:pageContext.setAttribute( “a” , ” page ” );request.setAttribute( “a” , ” request ” );session.setAttribute( “a” , ” session ” );application.setAttribute( “a” , ” application ” );% >有:${a}则显示结果为:A.pageB.requestC.sessionD.application
Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()A、 ErrorB、 ExceptionC、 ThrowableD、 Request errorE、 Request exception
Which two are valid values for the element inside a element of a web application deployment descriptor?()A、 NULLB、 SECUREC、 INTEGRALD、 ENCRYPTEDE、 CONFIDENTIAL
A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page?()A、 idB、 typeC、 nameD、 classE、 scopeF、 create
Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: % int i = 12; % %= i % What is the result?()A、b/bB、b12/bC、The JSP fails to execute.D、% int i = 12 %b%= i %/b
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
If you want to use the Java EE platform’s built-in type of authentication that uses a custom HTML page for authentication. Which two statements are true?()A、Your deployment descriptor will need to contain this tag: CUSTOM.B、The related custom HTML login page must be named loginPage.html.C、When you use this type of authentication, SSL is turned on automatically.D、You must have a tag in your deployment descriptor that allows you to point to both a login HTML pageand an HTML page for handling any login errors.E、In the HTML related to authentication for this application, you must use predefined variable names fort he variables that store the user and password values.
A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBeanattributes must be used to access this attribute in the JSP page?()A、IdB、TypeC、NameD、ClassE、Yscope
Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable 343./mainError.jsp 344. 345. 346.java.lang.ClassCastException 347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()A、The deployment descriptor is invalid.B、The container invokes mainError.jsp.C、The container invokes castError.jsp.D、Neither mainError.jsp nor castError.jsp is invoked.
Which three are valid URL mappings to a servlet in a web deployment descriptor?()A、*/*B、*.doC、MyServletD、/MyServletE、/MyServlet/*F、MyServlet/*.jsp
Which the three interfaces need to be declared in the web application deployment descriptor? ()A、 HttpSessionListenerB、 HttpSessionBindingListenerC、 HttpSessionTimedOutListenerD、 HttpSessionAttributeListenerE、 HttpSessionActivationListenerF、 HttpSessionPassivatedListener
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
Which two are valid values for the element inside a element ofa web application deployment descriptor?()A、NULLB、SECUREC、INTEGRALD、ENCRYPTEDE、CONFIDENTIAL
多选题Which the three interfaces need to be declared in the web application deployment descriptor? ()AHttpSessionListenerBHttpSessionBindingListenerCHttpSessionTimedOutListenerDHttpSessionAttributeListenerEHttpSessionActivationListenerFHttpSessionPassivatedListener
单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: What is the result?()Ab/bBb12/bCThe JSP fails to execute.D% int i = 12 %b%= i %/b
多选题You deployed a Java EE Shared Library and want to use it from an application that is also deployed on the same cluster. Which two manifest attributes must be specified at a minimum with corresponding values in the deployment descriptor of the application that requires?()AImplementation-VersionBSpecification-VersionCExtension-NameDSpecification-VendorEImplementation-Vendor
单选题Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()A ErrorB ExceptionC ThrowableD Request errorE Request exception
单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: What is the result?()Ab/bBb12/bCThe JSP fails to execute.D% int i = 12 %b%= i %/b
多选题A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBeanattributes must be used to access this attribute in the JSP page?()AIdBTypeCNameDClassEYscope
单选题Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable 343./mainError.jsp 344. 345. 346.java.lang.ClassCastException 347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()AThe deployment descriptor is invalid.BThe container invokes mainError.jsp.CThe container invokes castError.jsp.DNeither mainError.jsp nor castError.jsp is invoked.
单选题Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()Aclassbr/Bwebappbr/Cservletbr/Dcodebasebr/Eservlet-class
多选题Which two are valid values for the element inside a element of a web application deployment descriptor?()ANULLBSECURECINTEGRALDENCRYPTEDECONFIDENTIAL
单选题Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable 343./mainError.jsp 344. 345. 346.java.lang.ClassCastException 347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()AThe deployment descriptor is invalid.BThe container invokes mainError.jsp.CThe container invokes castError.jsp.DNeither mainError.jsp nor castError.jsp is invoked.
单选题Which implicit object is used in a JSP page to retrieve values associated with entries inthe deployment descriptor?()AConfigBRequestCSessionDApplication
多选题Which three are valid URL mappings to a servlet in a web deployment descriptor?()A*/*B*.doCMyServletD/MyServletE/MyServlet/*FMyServlet/*.jsp