struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan" <i...@interd4u.com>
Subject Re: Urgent repost: How to avoid <bean:write>to print null on the screen
Date Mon, 23 Feb 2004 12:26:41 GMT
Try to rewrite the taglib :) for your needs (and then share it)



----- Original Message ----- 
From: <anant.parnami@wipro.com>
To: <struts-user@jakarta.apache.org>
Sent: Monday, February 23, 2004 1:13 PM
Subject: Urgent repost: How to avoid <bean:write>to print null on the screen






Hi,


I am using <bean:write> in a lot of places in my jsp's, Whenever the
form bean property is null It prints "null" on the screen,  I was hoping
if there could be some way in which I can force all null values to be
printed as "" in my jsp's. I have tried giving  initial="" in my form
property but If my Data Holder object contains null and I set it to the
form bean then it still prints null.



I know one way of achieving this is using <logic:present> every where
but that's a huge amount change in jsp's we have 150 of them, If anybody
can suggest a shortcut It would be of a great help


Any help is greatly appreciated



Regards


Anant






Confidentiality Notice


The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify the sender at Wipro or
Mailadmin@wipro.com immediately and destroy all copies of this message
and any attachments.

Confidentiality Notice

The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

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


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


Mime
View raw message