struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Raible <matt_rai...@yahoo.com>
Subject Re: &nbsp; with <bean:write>
Date Thu, 23 Aug 2001 00:31:36 GMT
One thing I've done in the past is to always place a &nbsp; before my closing
</td> - that way you're guaranteed a space "after" the data and it doesn't
affect your layout.  This is only necessary if you have borders on your tables.
 The other solution is to remove table borders, and then this is not a concern
;)


--- David Corbin <dcorbin@imperitek.com> wrote:
> 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
> >
> >
> >
> >
> >
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Mime
View raw message