public static MySession get() { return (MySession) Session.get(); }
which avoids casts. (Use can use the same trick to get the application). Regards, Sebastiaan Suad AlShamsi wrote:
Did you try to get it from the application. getApplicaion().getSession(); tsuresh wrote:Hello, I have Panel called MenuPanel and a page WelcomePage. When the user isauthenticated through Login page the user is forwarded to WelcomePage. ThisWelcomePage consists of MenuPanel. How do I get the user session from the MenuPanel. I simply added the MenuPanel in WelcomePage as ........ add(new MenuPanel("menuBar")); ........ and in MenuPanel I tried to get Session as LoginSession sess = (LoginSession) getSession(); But this sess returned null;I have made the LoginSession class. I have set user session in Login page as ..session.setUser(user); .... Am i missing something? thanks--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME Cryptographic Signature