struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cheng, Sophia" <SCh...@arqule.com>
Subject tag for the blank string to "&nbsp;"
Date Wed, 19 Jun 2002 18:20:05 GMT
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>


Mime
View raw message