Question:
product is a session attribute ..which holds a info object.Info object has a name property.
which of the following will print the name in the response..?
1.<
jsp:getProperty id="product" type="info" />
2<jsp:useBean id="product class="info" >
<%= product.getName() %>
</jsp:useBean>
choose any one of them..if i get a option like this in the exam which one will i have to choose?