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  entries inthe deployment descriptor?()

  • A、Config
  • B、Request
  • C、Session
  • D、Application
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

以下哪些是作为JSP内置对象的作用范围?()

  • A、page
  • B、request
  • C、session
  • D、application

正确答案:A,B,C,D

第2题:

Which two are valid values for the  element inside a  element of a web application deployment descriptor?()

  • A、 NULL
  • B、 SECURE
  • C、 INTEGRAL
  • D、 ENCRYPTED
  • E、 CONFIDENTIAL

正确答案:C,E

第3题:

WhichimplicitobjectisusedinaJSPpagetoretrievevaluesassociatedwithentriesinthedeploymentdescriptor?()

A.Config

B.Request

C.Session

D.Application


参考答案:D

第4题:

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.

正确答案:D,E

第5题:

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></b>
  • B、<b>12</b>
  • C、The JSP fails to execute.
  • D、<% int i = 12 %><b><%= i %></b>

正确答案:C

第6题:

Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()

  • A、 Error
  • B、 Exception
  • C、 Throwable
  • D、 Request error
  • E、 Request exception

正确答案:B

第7题:

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、 id
  • B、 type
  • C、 name
  • D、 class
  • E、 scope
  • F、 create

正确答案:A,D

第8题:

某JSP中有如下代码:

< %

pageContext.setAttribute( “a” , ” page ” );

request.setAttribute( “a” , ” request ” );

session.setAttribute( “a” , ” session ” );

application.setAttribute( “a” , ” application ” );

% >

有:${a}

则显示结果为:

A.page

B.request

C.session

D.application


正确答案:A

第9题:

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 page
  • B、configure a listener in the TLD file using the  element
  • C、Include a  element in the web application deployment descriptor
  • D、configure a listener in the application deployment descriptor, using the  element
  • E、Include a class implementing ServletContextListener as part of the web application deploymen

正确答案:D,E

第10题:

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、Id
  • B、Type
  • C、Name
  • D、Class
  • E、Yscope

正确答案:A,D

更多相关问题