Urgent repost: How to avoid bean:writeto 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent repost: How to avoid bean:writeto print null on the screen
Try to rewrite the taglib :) for your needs (and then share it) - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 23, 2004 1:13 PM Subject: Urgent repost: How to avoid bean:writeto 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent repost: How to avoid bean:writeto print null on the screen
I don't use bean:write a lot, so I'm not sure if there's a solution for this. It doesn't look like anyone else either. If there aren't any alternatives, and it's as urgent as your reposts suggest, why not subclass the tag and make a new one which does what you want? That would be much faster than waiting 3-4 days in the mailing list for a response. --- [EMAIL PROTECTED] wrote: 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Urgent repost: How to avoid bean:writeto print null on the screen
Hi, I am thinking of overriding get and set methods of DynaForm Class in my Base Form class which extends Dyna Form in that if I can make a check it should be good .. What do you think? Regards anant -Original Message- From: Ivan [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 5:57 PM To: Struts Users Mailing List Subject: Re: Urgent repost: How to avoid bean:writeto print null on the screen Try to rewrite the taglib :) for your needs (and then share it) - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 23, 2004 1:13 PM Subject: Urgent repost: How to avoid bean:writeto 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent repost: How to avoid bean:writeto print null on the screen
use c:out it wont display null values. On 23 Feb 2004, at 13:51, [EMAIL PROTECTED] wrote: Hi, I am thinking of overriding get and set methods of DynaForm Class in my Base Form class which extends Dyna Form in that if I can make a check it should be good .. What do you think? Regards anant -Original Message- From: Ivan [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 5:57 PM To: Struts Users Mailing List Subject: Re: Urgent repost: How to avoid bean:writeto print null on the screen Try to rewrite the taglib :) for your needs (and then share it) - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 23, 2004 1:13 PM Subject: Urgent repost: How to avoid bean:writeto 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]