You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Luiz-Otavio Zorzella <zo...@codaware.com> on 2003/01/26 00:08:58 UTC
Problem with Struts and NULL EJBs
I have the following statement in a JSP:
<TD><bean:write name="person" property="groups.name"/></TD>
Where a "person" is an EJB. When the person does not belong to any
group, there is an Exception thrown, which I'd like to avoid so as to
not have to put conditionals everywhere where the Bean might be null. I
tried the 'ignore="true"' attribute of "bean:write", but there is still
an Exception being thrown.
Is there a way to really have the and/or other struts tags be immune to
these problems?
Thanks,
Zorzella
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>