123456789101112131415



Question 1: A Java bean with a property color is loaded using the following statement
<jsp:usebean id="fruit" class="Fruit"/>
What is the effect of the following statement.
<jsp:setproperty name="fruit" property="color"/>
Select the one correct answer.

1. An error gets generated because the value attribute of setAttribute is not defined.
2. The color attribute is assigned a value null.
3. The color attribute is assigned a value "".
4. if there is a non-null request parameter with name color, then its value gets assigned to color property of Java Bean fruit.