problem with fmt:formatDate

2004-10-14 Thread Flavio Tordini
Hi all, I'm using the fmt:formatDate tag and I discovered a strange behaviour: When a JSP is requested without specifying the Accept-Language HTTP header and no locale has been explicitly set in the JSP, the date is not formatted and the result of Date.toString() is returned instead. I checked

Re: problem with fmt:formatDate

2004-10-14 Thread Kris Schneider
I'm not arguing whether or not it's the *best* thing to do, but the JSTL 1.1 Spec. includes: 9.9 fmt:formatDate .. Null Error Handling - If value is null or empty, nothing is written to the current JspWriter object and the scoped variable is removed if it is specified (see attributes var and

Re: problem with fmt:formatDate

2004-10-14 Thread Flavio Tordini
hi Kris, thank you for your answer! I'm sorry I didn't find that statement before posting. Ok, it's 100% spec compliant... let's hope the spec will be changed in the future. It would also be backwards-compatible since noone relies on the *absence* of a HTTP request header to determine the date

Re: problem with fmt:formatDate

2004-10-14 Thread Felipe Leme
Flavio, You're free to add suggest such improvements for the next JSTL specs at: https://jstl-spec-public.dev.java.net/ -- Felipe On Thu, 2004-10-14 at 10:04, Flavio Tordini wrote: posting. Ok, it's 100% spec compliant... let's hope the spec will be changed in the future. It would also