SJSAS 9 and JSF - session expiration

Advertisement
November 30

Hi
I'm developing JSF (1.2) application. I'm using SJSAS 9, EJB 3.0 and toplink. My problem is session expiration. When user session expires and then user click for example on Save button on JSF form, application goes to login page, but after login user receive Internal server Error screen. As I see, session expires but after login, POST request is resend but all related objects don't exist any more (NullPointerException occurs in prerender method). Currently I'm redirecting to main page using following code:
public static ExternalContext getExternalContext() {
        return FacesContext.getCurrentInstance().getExternalContext();
getExternalContext().redirect(MAINPAGESTR);
...in try catch block ,in prerender method (JSF). Does anybody knows what should I do?

Advertisement

Replay

Have you tried to set a servlet filter to catch the error and build a nicer page?
If you can tell me how to set up a short session expiration time on Tomcat,
I can do the tests.
I am interrested in this issue as I will have to solve it for a project in the
next 2 weeks.

View 5 Replies

Tags:

  1. ipod nano wont turn on
  2. 3 G net worksettings of apple l phone
  3. 1020dead soulision
  4. YouTube não carrega no lg d300f
  5. what hv to do after stolen kaptop
  6. vidioplays.song
  7. imovie program for a1151
  8. 305500 non oracle exception
  9. cisco ise authentication failure
  10. whitecca
Copyrights 2019 Fcffair BigData Resource, All rights reserved