Greg: you could alternatively use the JSTL Core tags, if the bean is null it doesn't write anything I believe. The format is <c:out value="${yourbean}"/>
otherwise if you really want to use bean:write you could enclose it in a <logic:notEmpty name="mybean" property="bean property"></logic:notEmpty> or just <logic:notEmpty name="mybean"></logic:notEmpty> HTH -David ----- Original Message ----- From: "Gregory F. March" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, January 30, 2004 12:22 PM Subject: bean:write > > I haven't been able to confirm this first hand, but one of my team members > (who is not on this list) is trying to do a bean:write. > > The problem is that sometimes, the bean that is being displayed is null. My > question is what is the proper way to handle this? > > We tried to play with the ignore="true" attribute for been:write should handle > this, but it doesn't appear to work. We could do a logic:ifPresent (or > whatever that tag is), but if we had to do it in a bunch of places, it could > make things ugly. > > Any help would be appreciated... > > Thanks! > > /greg > > > > -- > Gregory F. March -=- http://www.gfm.net:81/~march -=- AIM:GfmNet > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]