Which two output the name of the product in the response? (Choose two)

Refer to the Exhibit.

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)

Refer to the Exhibit.

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() %>

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>



Leave a Reply 5

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


sc0r

sc0r

C is not possible. A useBean standard action must specify class or type attributes

J@ee

J@ee

A B D are correct