You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Ted Husted <hu...@apache.org> on 2001/06/01 23:39:20 UTC

Re: Logic tags and string properties

+1 on an empty attribute

I've been adding logic to my value beans to turn empty Strings back to
nulls when retrieving properties from the database (where I don't permit
nulls), so this would save me that workaround.

"Craig R. McClanahan" wrote:
> A third option would be to add an "empty" attribute to the <logic:present>
> and <logic:notPresent> tags, which tells them how to treat empty
> strings.  The default, of course, would be the current behavior.