A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Struts 2 Global Exception Handling (Convention Plugin)
Glen Divers
Ranch Hand
Joined: Jan 21, 2010
Posts: 61
posted
Jun 03, 2010 05:44:33
0
I've got a global exception handler defined in my Struts.xml.
<global-results> <result name="menu">/admin/menu</result> <result name="login">login.jsp</result> <result name="exception" type="redirect">error</result> </global-results> <global-exception-mappings> <exception-mapping exception="java.sql.SQLException" result="exception"/> <exception-mapping exception="java.lang.Exception" result="exception"/> </global-exception-mappings>
and it's working just fine thank you, except for the Struts "There is no Action mapped ....." messages. How do I intercept those?
Regards
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Jun 03, 2010 06:26:09
0
Those aren't an exception, IIRC. I usually just have a default action.
I agree. Here's the link:
http://aspose.com/file-tools
subject: Struts 2 Global Exception Handling (Convention Plugin)
Similar Threads
Global Exception handling issue in Struts2
configuring global exception page
Struts 2: error on adding <global-exception-mappings> tag to struts.xml
How to handle java.lang.NullPointerException in Struts2?..
Strut2 exception handling
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter