多选题A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization?()AIdBValCNameDParamEValueFProperty

多选题
A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization?()
A

Id

B

Val

C

Name

D

Param

E

Value

F

Property


参考解析

解析: 暂无解析

相关考题:

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:storeE.c:settarget=’${order}’property=’shipAddress’jsp:getPropertyname=’client’property=’homeAddress’//c:set

Giventheelementfromthewebapplicationdeploymentdescriptor:jsp-property-groupurl-pattern/main/page1.jsp/url-patternscripting-invalidtrue/scripting-invalid/jsp-property-groupandgiventhat/main/page1.jspcontains:%inti=12;%b%=i%/bWhatistheresult?()A.b/bB.b12/bC.TheJSPfailstoexecute.D.%inti=12%b%=i%/b

在JSP页面中,正确引入JavaBean的是()  A、%jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” %  B、jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean”   C、jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” / D、jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” /

JSP中JavaBean是通过指令标签()来访问的。A、〈%@ page%〉B、〈jsp:useBean〉C、〈jsp:setProperty〉D、〈jsp:getProperty〉

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

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? ()A、In the InitComplete event handler, set the Theme property of the Page object based on the user profile.B、In the PreLoad event handler, set the Theme property of the Page object based on the user profile.C、In the OnLoad event handler, set the Theme property of the Page object based on the user profile.D、In the PreInit event handler, set the Theme property of the Page object based on the user profile.

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? ()A、Set the Enabled property of the validation controls on the Web Form to False.B、Set the CausesValidation property of the btnCancel button to False.C、Set the CausesValidation property of the btnCancel button to True.D、Set the Visible property of the validation controls on the Web Form to False.

A JSP page needs to perform some operations before servicing the first request. Where can this be done?()A、 within a method called jspInitB、 within the page directive of the JSP pageC、 within a scriptlet at the top of the JSP pageD、 within the  XML element

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?()A、jsp:useBean id=’pageBean’ type=’com.example.MyBean’ /B、jsp:useBean id=’pageBean’ class=’com.example.MyBean’ /C、jsp:makeBean id=’pageBean’ type=’com.example.MyBean’ /D、jsp:makeBean id=’pageBean’ class=’com.example.MyBean’ /

JSP开发网站的两种模式分为jsp+javabean和jsp+javabean+servlet。

You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()A、jsp:insert page=’${bodyURL}’ /B、jsp:insert file=’${bodyURL}’ /C、jsp:include page=’${bodyURL}’ /D、jsp:include file=’${bodyURL}’ /E、jsp:insert page=’%= bodyURL %’ /

In a JSP-centric shopping cart application, you need to move a client’s home address of the Customerobject into the shipping address of the Order object. The address data is stored in a value object classcalled Address with properties for: street address, city, province, country, and postal code. Which two JSPcode snippets can be used to accomplish this goal?()A、c:set var=’order’ property=’shipAddress’value=’${client.homeAddress}’ /B、c:set target=’${order}’ property=’shipAddress’value=’${client.homeAddress}’ /C、jsp:setProperty name=’${order}’ property=’shipAddress’ value=’${client.homeAddress}’ /D、c:set var=’order’ property=’shipAddress’jsp:getProperty name=’client’ property=’homeAddress’ / /c:storeE、c:set target=’${order}’ property=’shipAddress’jsp:getProperty name=’client’ property=’homeAddress’ / /c:set

A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization?()A、IdB、ValC、NameD、ParamE、ValueF、Property

You are developing a page named Process.aspx in a shopping cart Web application that will be integrated into Certkiller .com's existing e-Commerce Web site. The Process.aspx page allows customers to pay for purchases using their credit cards. The Process.aspx page contains a Button control that confirms the customer's payment and calls an external Web service that charges the customer's credit card. You must implement confirmation and prevent postback unless the customer confirms payment. What should you do?()A、Set the OnClientClick property to a JavaScript statement.B、Set the PostBackUrl property to a JavaScript statement.C、Set the PostBackUrl property to the URL of a confirmation page.D、Set the OnClientClick property to the URL of a confirmation page.

You are implementing an ASP.NET page that will retrieve large sets of data from a data source. You add a ListView control and a DataPager control to the page. You need to ensure that the data can be viewed one page at a time. What should you do?()A、Set the DataPager control’s PageSize property to the number of rows to view at one time.B、Set the DataPager control’s PagedControlID property to the ID of the ListView control.C、In the code-behind file, set the DataPager control’s Parent property to the ListView control.D、In the code-behind file, set the ListView control’s Parent property to the DataPager control.

单选题在JSP页面中,正确引入JavaBean的是()A%jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” %  Bjsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean”   Cjsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” / Djsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” /

单选题A JSP page needs to perform some operations before servicing the first request. Where can this be done?()A within a method called jspInitB within the page directive of the JSP pageC within a scriptlet at the top of the JSP pageD within the  XML element

单选题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? ()AIn the InitComplete event handler, set the Theme property of the Page object based on the user profile.BIn the PreLoad event handler, set the Theme property of the Page object based on the user profile.CIn the OnLoad event handler, set the Theme property of the Page object based on the user profile.DIn the PreInit event handler, set the Theme property of the Page object based on the user profile.

单选题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

单选题Assume a JavaBean com.example.GradedTestBean exists and has two attributes. The attribute name is oftype java.lang.String and the attribute score is of type java.lang.Integer. An array of com.example. GradedTestBean objects is exposed to the page in a request- scoped attribute called results. Additionally,an empty java.util.HashMap called resultMap is placed in the page scope. A JSP page needs to add the firstentry in results to resultMap, storing the name attribute of the bean as the key and the score attribute of thebean as the value. Which code snippet of JSTL code satisfies this requirement?()A${resultMap[results[0].name] = results[0].score}Bc:set var=${resultMap} key=${results[0].name} value=${results[0].score} /Cc:set var=resultMap property=${results[0].name} ${results[0].value}/c:setDc:set var=resultMap property=${results[0].name} value=${results[0].score} /Ec:set target=${resultMap} property=${results[0].name} value=${results[0].score} /

单选题A session-scoped attribute, product, is stored by a servlet. That servlet then forwards to a JSP page. This attribute holds an instance of the com.Company.   Product class with a name property of “The Matrix” and price property of 39.95. Given the JSP page code snippet: What is the response output of this JSP page code snippet? ()A  Default costs 0.0B  Default costs 49.95C  Default costs 39.95D  The Matrix costs 0.0E  The Matrix costs 49.95F  The Matrix costs 39.95

多选题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?()AidBtypeCnameDclassEscopeFcreate

单选题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

单选题JSP中JavaBean是通过指令标签()来访问的。A〈%@ page%〉B〈jsp:useBean〉C〈jsp:setProperty〉D〈jsp:getProperty〉

多选题In a JSP-centric shopping cart application, you need to move a client’s home address of the Customerobject into the shipping address of the Order object. The address data is stored in a value object classcalled Address with properties for: street address, city, province, country, and postal code. Which two JSPcode snippets can be used to accomplish this goal?()Ac:set var=’order’ property=’shipAddress’value=’${client.homeAddress}’ /Bc:set target=’${order}’ property=’shipAddress’value=’${client.homeAddress}’ /Cjsp:setProperty name=’${order}’ property=’shipAddress’ value=’${client.homeAddress}’ /Dc:set var=’order’ property=’shipAddress’jsp:getProperty name=’client’ property=’homeAddress’ / /c:storeEc:set target=’${order}’ property=’shipAddress’jsp:getProperty name=’client’ property=’homeAddress’ / /c:set

多选题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