Id
Val
Name
Param
Value
Property
第1题:
在JSP页面中,正确引入JavaBean的是()
第2题:
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?()
第3题:
InaJSP-centricshoppingcartapplication,youneedtomoveaclient’shomeaddressoftheCustomerobjectintotheshippingaddressoftheOrderobject.TheaddressdataisstoredinavalueobjectclasscalledAddresswithpropertiesfor:streetaddress,city,province,country,andpostalcode.WhichtwoJSPcodesnippetscanbeusedtoaccomplishthisgoal?()
A.<c:setvar=’order’property=’shipAddress’value=’${client.homeAddress}’/>
B.<c:settarget=’${order}’property=’shipAddress’value=’${client.homeAddress}’/>
C.<jsp:setPropertyname=’${order}’property=’shipAddress’value=’${client.homeAddress}’/>
D.<c:setvar=’order’property=’shipAddress’><jsp:getPropertyname=’client’property=’homeAddress’/></c:store>
E.<c:settarget=’${order}’property=’shipAddress’><jsp:getPropertyname=’client’property=’homeAddress’/></c:set>
第4题:
A JSP page needs to perform some operations before servicing the first request. Where can this be done?()
第5题:
You create a Web site that stores users' active themes in user profile objects. You need to apply users' preferred themes when they log on to the Web site. What should you do? ()
第6题:
JSP中JavaBean是通过指令标签()来访问的。
第7题:
Given the element from the web application deployment descriptor:
第8题:
Giventheelementfromthewebapplicationdeploymentdescriptor:<jsp-property-group><url-pattern>/main/page1.jsp</url-pattern><scripting-invalid>true</scripting-invalid></jsp-property-group>andgiventhat/main/page1.jspcontains:<%inti=12;%><b><%=i%></b>Whatistheresult?()
A.<b></b>
B.<b>12</b>
C.TheJSPfailstoexecute.
D.<%inti=12%><b><%=i%></b>
第9题:
You create a Web Form that contains a button named btnCancel that enables users to exit the page. When users click this button, validation must not occur. During testing you learn that clicking the Cancel button does not enable users to exit the page. You need to ensure that users can always exit the page. What should you do? ()
第10题:
You need to create a JavaBean object that is used only within the current JSP page. It must NOT beaccessible to any other page including those that this page might import. Which JSP standard action canaccomplish this goal?()