Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unwrap from JSF exception

Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on an application that uses JSF in the front end and Spring as service layer.

We have defined 2 types of exception called as ApplicationException and SystemException

Any exception will be wrapped within above exceptions and thrown to the client.

We need to show different error pages for the above 2 exceptions.

We tried using <error-page> in web.xml but it does not work, since our application is wrapped within FacesException and thrown.

What may be the workaround for this?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic