Which two output the name of the product in the response?

Click the Exhibit button.
A servlet sets a session-scoped attribute product with an instance of com.example.Product and
forwards to a JSP.
Which two output the name of the product in the response? (Choose two.)

Click the Exhibit button.
A servlet sets a session-scoped attribute product with an instance of com.example.Product and
forwards to a JSP.
Which two output the name of the product in the response? (Choose two.)

A.
${product.name}

B.
<jsp:getProperty name=”product” property=”name” />

C.
<jsp:useBean id=”com.example.Product” />
<%= product.getName() %>

D.
<jsp:getProperty name=”product” class=”com.example.Product”
property=”name” />

E.
<jsp:useBean id=”product” type=”com.example.Product”>
<%= product.getName() %>
</jsp:useBean>

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *