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 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"/>