I want to redirect to LoginPage when session expires. If I can pass page
parameter while setting expired page, I can use that parameter in
LoginPage to know that LoginPage is called because of Session is
expired.
getApplicationSettings().setPageExpiredErrorPage(LoginPage.class, new
PageParameters("pageExpired=true"));
and in LoginPage
...
public LoginPage(final PageParameters parameters) {
super(parameters);
parameters.getString("pageExpired")
if(pageExpired == true)
error("Your session is Expired. Pleae login
again.", this);
...
}
...
-----Original Message-----
From: Patel, Sanjay [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2008 12:26 PM
To: [email protected]
Subject: RE: how to pass parameters while setting page expired error
page
I want to pass some param so I can know in LoginPage that it is called
because of session expired and I can show appropriate message (e.g your
session is expired, please login again.)
-----Original Message-----
From: Johan Compagner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2008 12:11 PM
To: [email protected]
Subject: Re: how to pass parameters while setting page expired error
page
What param is that? What info do you want to pass in?
On 6/4/08, Patel, Sanjay <[EMAIL PROTECTED]> wrote:
> I want to redirect to LoginPage if session expires and want to show
> message that "your session expired, please login again."
> Is there any way that I can pass parameters to LoginPage ??
>
> getApplicationSettings().setPageExpiredErrorPage(LoginPage.class);
>
> Thanks,
> Sanjay.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]