I agree with you - I'd say this is a bug. Could you file a bug in bugzilla,
please (if you haven't done so already)?

Thanks.

--
Martin Cooper


----- Original Message -----
From: Deadman, Hal <[EMAIL PROTECTED]>
To: 'Struts Dev List' <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 6:07 PM
Subject: bean:write format attribute changes bean:write default behavior


> I have some code that uses bean:write and the datetime:format tag from
> taglibs project. I use it like this:
>
> <datetime:format pattern="MM/dd/yyyy"><bean:write name="contractinfo"
> property="beginDate.time"/></datetime:format>
>
> The bean:write used to print out the number of milliseconds returned by
> getBeginDate().getTime().
>
> I got a nightly build and now the bean:write prints the number of
> milliseconds with commas which is breaking the datetime:format tag.
>
> Shouldn't the default behavior for bean:write stay the same if I am not
> using the format attribute? I just want to let everyone know that the
format
> attribute as added will break some existing code that is out there. At the
> very least it should be added as a potential gotcha to the release notes
for
> Struts 1.1.
>
> I think the format attribute is a good thing and I wouldn't mind not using
> datetime:format because my current technique is painful when the date is
> null.
>
> Thanks, Hal
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to