Java
T
point
Home
Python
Java
JavaScript
HTML
SQL
PHP
C#
C++
DS
Aptitude
Reasoning
Selenium
DBMS
C
Android
Interview Q
Content Menu ▼
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.