Hello,
I have two
jsp files that use the getter of a CMP bean to display information. The first page is a list of items and I use the bean getter to display the information in a table <td><%=salaryPlan.getSalary()%><td>
If the value is null in the database nothing is returned and the output looks like <td></td>
Then on an update page I use the getter to put the info into a form and text fields. <td><input type="text" name="salary" value = "<%=salaryPlan.getSalary()%>"><td>
And in this case a null value is returned as "null"
The first uses <
EJB:useBean> and the second uses <EJB:iterate>. This seems to be what is causing the problem. Don't know why.
How can I make the useBean tag output nothing when a null value is present?
Thanks for your time.
Smoke
[ August 05, 2004: Message edited by: Smoke Williams ]