jsp
第1题:
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>
第2题:
A.<jsp:importfile=’foo.jsp’/>
B.<jsp:importpage=’foo.jsp’/>
C.<jsp:includepage=’foo.jsp’/>
D.<jsp:includefile=’foo.jsp’/>
第3题:
For manageability purposes, you have been told to add a "count" instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked. Which JSP code snippetmust you use to declare this instance variable in the JSP Document?()
第4题:
重定向可以使用()方法。
第5题:
在J2EE中,在aa.jsp中有行代码: <%><% request.setAttribute("Co.","jb-aptech"); %> 在bb.jsp中有行代码: <% out.println((String)request.getAttribute("Co.")); %> <%> 为了使得在bb.jsp中的如上代码可以显示“jb-aptech”,可以使用()方法。
第6题:
Which JSP standard action can be used to import content from a resource called foo.jsp?()
第7题:
JSP标准动作不包括()。
第8题:
下列哪一项不属于JSP动作指令标记?()
第9题:
JSP页面包括以下哪些元素?()
第10题:
You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the
第11题:
〈jsp:userBean〉
〈jsp:include〉
〈jsp:setProperty〉
〈jsp:getProperty〉
第12题:
〈jsp:param〉
〈jsp:plugin〉
〈jsp:useBean〉
〈jsp:javaBean〉
第13题:
Formanageabilitypurposes,youhavebeentoldtoadda"count"instancevariabletoacriticalJSP DocumentsothataJMXMBeancantrackhowfrequentthisJSPisbeinginvoked.WhichJSPcodesnippetmustyouusetodeclarethisinstancevariableintheJSPDocument?()
A.<jsp:declaration>intcount=0;<jsp:declaration>
B.<%!intcount=0;%>
C.<jsp:declaration.instance>intcount=0;.<jsp:declaration.instance>
D.<jsp:scriptlet.declaration>intcount=0;.<jsp:scriptlet.declaration>
第14题:
有三个页面,a.jsp,b.jsp和c.jsp,流程是:a.jsp->b.jsp->c.jsp,其中a.jsp中提交的数据要在c.jsp中访问,用最简单的方法 怎么做?注意不能放在session里
用隐藏表单域,即在b.jsp页面中用N个hidden把上一页面提交过来的信息保存下来,然后和当前一起提交,再到c.jsp里面获取
说明:尽量不要用session和少用session
第15题:
下列选项中不属于JSP标准动作的是()
第16题:
JavaBean可以通过相关jsp动作指令进行调用。下面哪个不是JavaBean可以使用的jsp动作指令?()
第17题:
在J2EE中,对于
第18题:
在JSP中需要将1.jsp的请求数据通过2.jsp转发给3.jsp,应该在2.jsp中采用()方式实现。
第19题:
用于获取bean属性的动作是()。
第20题:
下面哪个不是JSP中和javabean相关的标记?()
第21题:
在以下组件中,哪些组件与JavaBean有关?()
第22题:
Which two are valid and equivalent?()
第23题:
<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>
<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>
<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>
<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>
第24题:
<jsp:insert page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:insert>
<jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>
<jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>
<jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert>
<jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include>