[Logo] Mentawai Recipes
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Moderation Log] Moderation Log   [Register] Register / 
[Login] Login 
Displaying application exceptions in a nice way  XML
Forum Index » Official Recipes
Author Message

Joined: 10/01/2008 08:20:15
Messages: 39

You can use the ExceptionFilter as a global filter for that. Just set it up in the front of all other filters, so it will trap any exceptions that happen after him:

After placing some info about the exception in the action output, the ExceptionFilter returns the EXCEPTION result. Therefore you should define a global consequence that will be a forward to the page designed to exception and perhaps a sorry message to the user:

Now in the error.jsp page, you can get the following values from the action output:

Forum Index » Official Recipes
Go to:   
Powered by JForum 2.1.8 © JForum Team