struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <jmitc...@telocity.com>
Subject RE: tag for the blank string to "&nbsp;"
Date Wed, 19 Jun 2002 20:21:55 GMT
DOH!!.....hehehe.....sorry, that's what I meant. (going thru my mail too
quickly)

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://struts-atlanta.open-tools.org

> -----Original Message-----
> From: Joseph Barefoot [mailto:josephb@hereuare.com]
> Sent: Thursday, June 20, 2002 4:02 PM
> To: Struts Users Mailing List; Struts-Atlanta@open-tools.org
> Subject: RE: tag for the blank string to "&nbsp;"
>
>
> That's what we do, except the "&nbsp;" should be outside the logic tag, or
> it won't get ouputted when the property isn't present:
>
>   <td>
>     <logic:present name="theForm" property="theProp">
>        <bean:write name="theForm" property="theProp"/>
>     </logic:present>
>     &nbsp;
>   </td>
>
> > -----Original Message-----
> > From: James Mitchell [mailto:jmitchtx@telocity.com]
> > Sent: Wednesday, June 19, 2002 1:03 PM
> > To: Struts Users Mailing List
> > Subject: RE: tag for the blank string to "&nbsp;"
> >
> >
> > You might be frustrated by the way tables are displayed when a
> > <td> is empty
> > (especially if you are using stylesheets to format your tables)
> >
> > Instead of rewriting a bunch tablib to support this, or calling helper
> > functions, I've overcome this by always adding a &nbsp; in
> every <td> like
> > this....
> >
> >  <td>
> >    <logic:present name="theForm" property="theProp">
> >       <bean:write name="theForm" property="theProp"/>&nbsp;
> >    </logic:present>
> >  </td>
> >
> > Hope this helps!
> >
> >
> > James Mitchell
> > Software Engineer\Struts Evangelist
> > Struts-Atlanta, the "Open Minded Developer Network"
> > http://struts-atlanta.open-tools.org
> >
> > > -----Original Message-----
> > > From: Cheng, Sophia [mailto:SCheng@arqule.com]
> > > Sent: Wednesday, June 19, 2002 2:20 PM
> > > To: 'struts-user@jakarta.apache.org'
> > > Subject: tag for the blank string to "&nbsp;"
> > >
> > >
> > > Hi,
> > >       Is there any tag which will write the blank string(null
> String or
> > > String with length 0) to "&nbsp;"  for a form property?
> > >
> > >       Currently I am using logic:notPresent(see below), but I
> > > need to do it
> > > for many properties.  Is there some other way to handle it?
> > >
> > >
> > > <td>
> > >   <logic:notPresent name="theForm" property="theProp">
> > >     &nbsp;
> > >   </logic:notPresent>
> > >   <logic:present name="theForm" property="theProp">
> > >       <bean:write name="theForm" property="theProp"/>
> > >   </logic:present>
> > > </td>
> > >
> > >
> > > Thanks in advance.
> > >
> > > Sophia
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <mailto:struts-user-help@jakarta.apache.org>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message