AW: Improper timing using Calendar class (JSP/servlet)

2002-06-06 Thread Ralph Einfeldt

Although it might be a personal view I thing this is a valid 
opinion. Listening to this list for a while I got the impression
that using declarations inside <%! %> is a thing, that can lead
to much trouble. Most people that are new to multithreaded 
programming or the architecture of a servlet container get
problems if they use this construct.

On the other side if you and your team knows what you do,
it's a quite legal action. But if you have a team where some 
people do the mainly html and little scripting, that don't have 
the technical background it better to avoid this as much as 
possible.

> -Ursprüngliche Nachricht-
> Von: James Williamson [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 6. Juni 2002 09:55
> An: Tomcat Users List
> Betreff: Re: Improper timing using Calendar class (JSP/servlet)
> 
> I'm sorry Fillup, this is what raised my earlier (trollish) post, you 
> often seem to be feeding this list with invalid information 
> or from what
> I can gather your highly personal perspective on what's right 
> or wrong. 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: AW: Improper timing using Calendar class (JSP/servlet)

2002-06-05 Thread Phillip Morelock

> Only all constructors and methods that try
> to treat the Date as an calendar are deprecated.
> 
> It still valid to use Date with time in ms and
> to do math with that.

Sorry, my mistake.  That's what I get for shooting off the old mouth without
a full understanding.

I learned long ago this class was "deprecated" from some guy who told me
that -- but I never read the documentation thoroughly enough, I guess.  I
saw about 90% deprecation of methods and made the wrong assumption -- that
the class was being deprecated.  The documentation for Date is very
interesting, BTW.  Just read it myself ;)

cheers
fillup


On 6/5/02 11:59 PM, "Ralph Einfeldt" <[EMAIL PROTECTED]> wrote:

> Date deprecated ? Until 1.4 this class is not
> deptrecated (and I guess it will not be in future
> versions).
> 
> Only all constructors and methods that try
> to treat the Date as an calendar are deprecated.
> 
> It still valid to use Date with time in ms and
> to do math with that.
> 
>> -Ursprüngliche Nachricht-
>> Von: Phillip Morelock [mailto:[EMAIL PROTECTED]]
>> Gesendet: Mittwoch, 5. Juni 2002 23:09
>> An: Tomcat Users List
>> Betreff: Re: Improper timing using Calendar class (JSP/servlet)
> 
>> Also, the Date class is deprecated, and the Calendar class
>> should be used
>> via the concrete culture-specific subclass, in Western society this is
>> GregorianCalendar.
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Improper timing using Calendar class (JSP/servlet)

2002-06-05 Thread Ralph Einfeldt

Date deprecated ? Until 1.4 this class is not
deptrecated (and I guess it will not be in future 
versions).

Only all constructors and methods that try
to treat the Date as an calendar are deprecated.

It still valid to use Date with time in ms and
to do math with that.

> -Ursprüngliche Nachricht-
> Von: Phillip Morelock [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 5. Juni 2002 23:09
> An: Tomcat Users List
> Betreff: Re: Improper timing using Calendar class (JSP/servlet)

> Also, the Date class is deprecated, and the Calendar class 
> should be used
> via the concrete culture-specific subclass, in Western society this is
> GregorianCalendar.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: