1Z0-858 Web TestEngine demo

Exit VCEDump 1Z0-858 Java Enterprise Edition 5 Web Component Developer Certified Professional
Question 4 of 42
0% complete
Q4 Single choice

Click the Exhibit button.

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.example.Product class with a name property of "The Matrix" and price property of 39.95.

Given the JSP page code snippet:

1. <jsp:useBean id='product' class='com.example.Product'>
2. <jsp:setProperty name='product' property='price' value='49.95'/>
3. </jsp:useBean>
4. <%= product.getName() %> costs <%= product.getPrice() %>

What is the response output of this JSP page code snippet?

Question 4 diagram

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in