In our application we use jsf,we have
to redirect the user to home page
after their session will be expired.For that i need a path of the home page which i kept in my logout managed bean as a managed bean property.But after session expired if i try to access that it will arise null pointer exception(managed bean becomes null).Then
i have decide to try alternative (i.e)create logout class manually and try to access the property, at that time the property which i wants to access is become null.How can i access
that property?
Please help me.
Thanks in advance.
In our application we use jsf,we have to redirect the user to home page
Share
In addition to the previous answer:
You could use (in web.xml)
Or Context Parameters instead of Session Attributes. See:
Or use (in faces-context.xml)
for your bean, so it will stay independent from the session.