Fabrice Sarciaux wrote:
> Vector threadList=(Vector)Application.getAttribute("ThreadList");
>
> for(int x=0;x<threadList;x++)
> {
> MyThread t=(MyThread)threadList.elementAt(x);
> ....
> }
>
> i get a ClassCastException when trying to cast the object of the vector into
> a MyThread object
My guess is that the vector contains Threads instead of MyThreads. Print t.toString()
to see what you've really got.
cc
P.S. BTW, this question would probably be more appropriate for a java programming news
group than a JSP news group.
begin:vcard
n:Cobb;Christopher
tel;cell:703-909-7550
tel;fax:703-648-7475
tel;work:703-648-6725
x-mozilla-html:TRUE
org:Powerhouse Technologies, Inc.
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:SW Architect
fn:Christopher Cobb
end:vcard