123456789101112131415



Question 1: A bean with a property color is loaded using the following statement
<jsp:usebean id="fruit" class="Fruit"/>
Which of the following statements may be used to print the value of color property of the bean. Select the one correct answer.

1. <jsp:getColor bean="fruit"/>
2. <jsp:getProperty id="fruit" property="color"/>
3. <jsp:getProperty bean="fruit" property="color"/>
4. <jsp:getProperty name="fruit" property="color"/>