Wednesday, 20 June 2012

Global Exception Mappings:

We have seen how we can handle action specific exception. We can set
an exception globally which will apply to all the actions. For example,
to catch the same NullPointerException exceptions, we could add <global-exception-mappings...>
tag inside <package...> tag and its <result...> tag should
be added inside the <action...> tag in struts.xml file as follows: