struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Corbin" <dcor...@imperitek.com>
Subject Re: &nbsp; with <bean:write>
Date Wed, 22 Aug 2001 23:48:44 GMT
And I thought about that,  I was just shocked that there isn't already
something for this.

----- Original Message -----
From: "Patrick Vanden Driessche" <pvdd@advalvas.be>
To: <struts-user@jakarta.apache.org>
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:dcorbin@imperitek.com]
> 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
>
>
>
>
>


Mime
View raw message