wood burning stoves 2.0*
The moose likes JSF and the fly likes Redirecting to different pages based on exception type in JSF1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Redirecting to different pages based on exception type in JSF1.2" Watch "Redirecting to different pages based on exception type in JSF1.2" New topic
Author

Redirecting to different pages based on exception type in JSF1.2

Ajeeth Kumar
Ranch Hand

Joined: Mar 30, 2005
Posts: 56
I am trying to show to a special error page for only one of the JSF pages in my application.
I tried to throw SpecialException from all the BB methods and entered a error-page mapping with SpecialException entry in web.xml.

Still whenever an error occurs, I am redirected to commonerror.xhtml which is associated with javax.faces.FacesException.
How to solve this issue?
Ajeeth Kumar
Ranch Hand

Joined: Mar 30, 2005
Posts: 56
Buddies, looking for a quick answer... many of you might have come across this problem.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Redirecting to different pages based on exception type in JSF1.2