Given a JSP er

题目

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
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Whichtwoarevalidandequivalent?()

A.<%!inti;%>

B.<%=inti;%>

C.<jsp:expr>inti;</jsp:expr>

D.<jsp:scriptlet>inti;</jsp:scriptlet>

E.<jsp:declaration>inti;</jsp:declaration>


参考答案:A, E

第2题:

YouhaveanewITmanagerthathasmandatedthatallJSPsmustberefactoredtoincludenoscritpletcode.TheITmanagerhasaskedyoutoenforcethis.Whichdeploymentdescriptorelementwillsatisfythisconstraint?()

A.<jsp-property-group>.<url-pattern>*.jsp</url-pattern>.<permit-scripting>false</permit-scripting>.</jsp-property-group>

B.<jsp-config>.<url-pattern>*.jsp</url-pattern><permit-scripting>false</permit-scripting>.</jsp-config>

C.<jsp-config>.<url-pattern>*.jsp</url-pattern>.<scripting-invalid>true</scripting-invalid>.</jsp-config>

D.<jsp-property-group>.<url-pattern>*.jsp</url-pattern>.<scripting-invalid>true</scripting-invalid>.</jsp-property-group>


参考答案:D

第3题:

JSP EL表达式的语法为( )

A、!JSP expression

B、@{JSP expression}

C、${JSP expression}

D、#{JSP expression}


正确答案:C

第4题:

JSP标准动作不包括()。 

  • A、<jsp:forward /> 
  • B、<jsp:forEach /> 
  • C、<jsp:useBean /> 
  • D、<jsp:setProperry /> 

正确答案:B

第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:11.<servlet>12.<servlet-name>catalog</servlet-name>13.<jsp-file>/catalogTemplate.jsp</jsp-file>14.<load-on-startup>10</load-on-startup>15.</servlet>Whichtwoaretrue?()

A.Line13isnotvalidforaservletdeclaration.

B.Line14isnotvalidforaservletdeclaration.

C.Oneinstanceoftheservletwillbeloadedatstartup.

D.Teninstancesoftheservletwillbeloadedatstartup.

E.Theservletwillbereferencedbythenamecataloginmappings.


参考答案:C, E

第7题:

WhichJSPstandardactioncanbeusedtoimportcontentfromaresourcecalledfoo.jsp?()

A.<jsp:importfile=’foo.jsp’/>

B.<jsp:importpage=’foo.jsp’/>

C.<jsp:includepage=’foo.jsp’/>

D.<jsp:includefile=’foo.jsp’/>


参考答案:C

第8题:

Youarebuildingyourownlayoutmechanismbyincludingdynamiccontentforthepage’sheaderandfootersections.Thefooterisalwaysstatic,buttheheadergeneratesthe<title>tagthatrequiresthepagenametobespecifieddynamicallywhentheheaderisimported.WhichJSPcodesnippetperformstheimportoftheheadercontent?()

A.<jsp:includepage=’/WEB-INF/jsp/header.jsp’><jsp:paramname=’pageName’value=’WelcomePage’/></jsp:include>

B.<jsp:importpage=’/WEB-INF/jsp/header.jsp’><jsp:paramname=’pageName’value=’WelcomePage’/></jsp:import>

C.<jsp:includepage=’/WEB-INF/jsp/header.jsp’><jsp:attributename=’pageName’value=’WelcomePage’/>.</jsp:include>

D.<jsp:importpage=’/WEB-INF/jsp/header.jsp’>.<jsp:attributename=’pageName’value=’WelcomePage’/>.</jsp:import>


参考答案:A

第9题:

Which JSP standard action can be used to import content from a resource called foo.jsp?()

  • A、<jsp:import file=’foo.jsp’ />
  • B、<jsp:import page=’foo.jsp’ />
  • C、<jsp:include page=’foo.jsp’ />
  • D、<jsp:include file=’foo.jsp’ />

正确答案:C

第10题:

下面哪个不是JSP中和javabean相关的标记?()

  • A、〈jsp:userBean〉
  • B、〈jsp:include〉
  • C、〈jsp:setProperty〉
  • D、〈jsp:getProperty〉

正确答案:B

更多相关问题