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>
A,B.
D is wrong, A servlet sets a session-scoped attribute, D search in page scope.
best friend are you stupid , A is wrong
it is B and E