--- [EMAIL PROTECTED] wrote:
> Yes, when I try casting it like you this,
>  User
user=(User)getSession().get(Constantes.USER_SESSION_KEY);
> I'm getting a ClassCastException.

Make sure you're importing the correct "User" class;
if the User class in session is the correct type then
it's essentially impossible to get a class cast
exception unless the User class on the left-hand side
is the wrong type.

d.


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

Reply via email to