Consider the following scenario.
I am clicking the submit button of a JSF form, after the session has timed out(expired).
The browser displays some exception message:
ViewExpiredException: view context could not be restored
What I want to do is, to automatically redirect to the homepage of the website after the session has expired. What is the mechanism to do this? Any help would be much appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…