And I thought about that,  I was just shocked that there isn't already
something for this.

----- Original Message -----
From: "Patrick Vanden Driessche" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 7:35 PM
Subject: RE: &nbsp; with <bean:write>


> Hi David,
>
> I am assuming that you are using bean:write to retrieve data values from
> your model beans. Your problem is purely related to the presentation
> (view/jsp).
> So, a clean solution would be to create a custom JSP tag, which would do
the
> same as the the Struts bean:write tag
> (org.apache.struts.taglib.bean.WriteTag.java).
> This new tag could then do the additional check on the property value, and
> write the  default value "&nbsp;" to the output writer if the original
bean
> property's value is empty...
>
> Hope this inspires you :-)
>
> Patrick.
>
>
> -----Original Message-----
> From: David Corbin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 14:36
> To: Struts User
> Subject: &nbsp; with <bean:write>
>
>
> I'm using bean:write to populate a table.  When a string is empty, I
> (sometimes) need to put out "&nbsp;" so that the tables borders look
right.
> I've found that I can do this directly (setting the bean property), so
what
> should I do?
>
> David Corbin
>
>
>
>
>

Reply via email to