Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3443058
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:44:42+00:00 2026-05-18T08:44:42+00:00

In our application we use jsf,we have to redirect the user to home page

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:44:43+00:00Added an answer on May 18, 2026 at 8:44 am

    In addition to the previous answer:

    You could use (in web.xml)

    <error-page>
    <exception-type>javax.faces.application.ViewExpiredException</exception-type>
    <location>viewexpired.jsp</location>
    </error-page>
    

    Or Context Parameters instead of Session Attributes. See:

    • http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
    • http://safebox.guisho.com/jsf-how-to-get-webxml-parameters

    Or use (in faces-context.xml)

    <managed-bean-scope>application</managed-bean-scope> 
    

    for your bean, so it will stay independent from the session.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our application used to make use of a common base form that all forms
In our application we use a singleton for a web service and that singleton
I am new in asp.net,I have to luanch our application use asp.net,and I use
I have a web application that currently uses Flash. That application allows the user
We have an existing application that makes use of the System.IO.Packaging.Package class for reading
Have Log4Net configured in our application to use a date stamped name and a
We have a Sql Server 2000 database application that needs to update our applications
Our PHP application makes use of json_encode($myObject) a lot, in conjunction with the mustache
In our Spring application we use clustered Hibernate Search with ActiveMQ which sets up
We use OpenFileDialog across our application to select files. So far, we never used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.