In my
jsp I am using <jsp:getProperty> to get the value of a bean
Here is the code sample
<jsp:useBean id="test" scope="session" class="TestBean"/>
<tr>
<td width="60%" align="right"><b><font color="#000080">First Name #</font></b>
</td>
<td width="40%"><input type="text" name="fName" size="20"
value="<jsp:getProperty name="test" property="firstName" />"></td>
</tr>
I try to use the <jsp:getProperty> tag to get the value
but it keeps initiating a "blank" bean.
As a temporary workaround, I am using <% out.println(TestBean.getFirstName()) %>
to achieve the same effect and it works.
Ideally, I would like to use <jsp:getProperty name="beanName" property="beanID">
And some reason its not working
The firstName is declared as a variable in a Bean and and it also
has a corresponding get method
Guru's Please help me