Are you using an inner class for declaring MyObject ?

I faced a similar problem when I daclared a class as below in a jsp page,
create an object of type ax,
saved it in a session, and retrived it in another jsp page which had the
same <%! class ax ...%>
code fragment.

<%!
class ax
{
public int x;
}
%>

The problem is that you cannot cast inner classes as they are qualified by
their enclosing class (AFAIK)
Try moving class MyObject to a seprate .java file.

Regards
Shahed


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to