continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r434201 - /maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/xwork.xml
Date Wed, 23 Aug 2006 21:43:54 GMT
Author: carlos
Date: Wed Aug 23 14:43:53 2006
New Revision: 434201

URL: http://svn.apache.org/viewvc?rev=434201&view=rev
Log:
Add xwork ExceptionInterceptor that ignores Acegi exceptions, as Acegi can handle them

Modified:
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/xwork.xml

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/xwork.xml
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/xwork.xml?rev=434201&r1=434200&r2=434201&view=diff
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/xwork.xml
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/xwork.xml
Wed Aug 23 14:43:53 2006
@@ -7,7 +7,7 @@
     <interceptors>
       <interceptor name="exception-logging" class="exceptionLogging"/>
       <interceptor-stack name="defaultContinuumStack">
-        <interceptor-ref name="exception-logging"/>
+        <interceptor-ref name="exception-acegi"/>
         <interceptor-ref name="prepare"/>
         <interceptor-ref name="servlet-config"/>
         <interceptor-ref name="chain"/>
@@ -27,12 +27,10 @@
     <global-results>
       <result name="login" type="redirect">/login.jsp</result>
       <result name="error">/error.jsp</result>
-      <result name="internalError" type="redirect">/error.jsp</result>
     </global-results>
 
     <global-exception-mappings>
-      <exception-mapping exception="org.acegisecurity.AuthenticationCredentialsNotFoundException"
result="login"/>
-      <exception-mapping exception="java.lang.Exception" result="internalError"/>
+      <exception-mapping exception="java.lang.Exception" result="error"/>
     </global-exception-mappings>
 
     <action name="checkConfiguration" class="checkConfiguration">



Mime
View raw message