Re: jsp check AuthenticatedWebSession.get().isSignedIn()

2011-06-30 Thread Pedro Santos
Hi, you can share this info in the HttpServletSession. On Tue, Jun 28, 2011 at 4:57 PM, fachhoch fachh...@gmail.com wrote: I have very few jsp pages and for these pages I want to check that user is authenticated. I tried calling AuthenticatedWebSession.get().isSignedIn()   and I getting this

Re: jsp check AuthenticatedWebSession.get().isSignedIn()

2011-06-30 Thread Bruno Borges
If you are calling a jsp file, Wicket is not being processed. And so, Application.get() won't return a valid object. In your newSession() method, add something your project understand to HttpSession as Pedro said. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Jun 30, 2011 at

Re: jsp check AuthenticatedWebSession.get().isSignedIn()

2011-06-30 Thread Martin Grigorov
WicketSessionFilter is also an option. On Thu, Jun 30, 2011 at 9:59 PM, Bruno Borges bruno.bor...@gmail.com wrote: If you are calling a jsp file, Wicket is not being processed. And so, Application.get() won't return a valid object. In your newSession() method, add something your project

jsp check AuthenticatedWebSession.get().isSignedIn()

2011-06-28 Thread fachhoch
I have very few jsp pages and for these pages I want to check that user is authenticated. I tried calling AuthenticatedWebSession.get().isSignedIn() and I getting this exception java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle