阿摩線上測驗 登入

試題詳解

試卷:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(1-50)#84202 | 科目:OCE

試卷資訊

試卷名稱:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(1-50)#84202

科目:OCE

複選題
48 View the Exhibit.
5e7f1879dd55f.jpg Assume the product attribute does NOT yet exist in any scope. Which two create an instance of com.example.Product and initialize the name and price properties to the name and price request parameters? (Choose two)
(A) <jsp:useBean id="product" class="com.example.Product" /><jsp:setProperty name="product" property="*" />
(B) <jsp:useBean id="product" class="com.example.Product" /><% product.setName( request.getParameter( "name" ) ); %><% product.setPrice( request.getParameter( "price" ) ); %>
(C) <jsp:useBean id="product" class="com.example.Product" /><jsp:setProperty name="product" property="name"value="${param.name}" /><jsp:setProperty name="product" property="price"value="${param.price}" /> IT Certification Guaranteed, The Easy Way!
(D) <jsp:useBean id="product" class="com.example.Product"><jsp:setProperty name="product" property="name"value="${name}" /><jsp:setProperty name="product" property="price"value="${price}" /></jsp:useBean>
正確答案:登入後查看