阿摩線上測驗 登入

試題詳解

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

試卷資訊

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

科目:OCE

Explanation The request.getParts() method returns collections of all Part objects. If you have more than one input of type file, multiple Part objects are returned. Since Part objects are named, the getPart(String name) method can be used to access a particular Part. Alternatively, the getParts() method, which returns an Iterable<Part>, can be used to get an Iterator over all the Part objects.
72 Refer to the Exhibit. 5e77109ccb773.jpg

A servlet sets a session-scoped attribute product with an instance of com.example.product an forward to a JSP. Which two output the name of the product in the response? (Choose two)
 
(A) <%= product.getName() %> IT Certification Guaranteed, The Easy Way! 28
 
(B) <jsp:useBean id="product" class="com.example.Product" /><%= product.getName() %>
 
(C) <jsp:useBean id="com.example.Product" scope="page"><%= product.getName() %></jsp:useBean> 

(D) <jsp:useBean id="product" type="com.example.Product"scope="page" /><%= product.getName() %>
(E) <jsp:useBean id="product" type="com.example.Product"><%= product.getName() %></jsp:useBean>
正確答案:登入後查看