mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Better error handling in new filters, added autowire respect property to default list
WW-2193 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@670308 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+3
-1
@@ -49,7 +49,9 @@ public class StrutsPrepareAndExecuteFilter implements StrutsStatics, Filter {
|
||||
cleanup = new CleanupOperations(dispatcher);
|
||||
execute = new ExecuteOperations(filterConfig.getServletContext(), dispatcher);
|
||||
} finally {
|
||||
cleanup.cleanupInit();
|
||||
if (cleanup != null) {
|
||||
cleanup.cleanupInit();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -44,7 +44,9 @@ public class StrutsPrepareFilter implements StrutsStatics, Filter {
|
||||
prepare = new PrepareOperations(filterConfig.getServletContext(), dispatcher);
|
||||
cleanup = new CleanupOperations(dispatcher);
|
||||
} finally {
|
||||
cleanup.cleanupInit();
|
||||
if (cleanup != null) {
|
||||
cleanup.cleanupInit();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -48,6 +48,10 @@ struts.objectFactory.spring.autoWire = name
|
||||
### valid values are: true, false (true is the default)
|
||||
struts.objectFactory.spring.useClassCache = true
|
||||
|
||||
### ensures the autowire strategy is always respected.
|
||||
### valid values are: true, false (false is the default)
|
||||
struts.objectFactory.spring.autoWire.alwaysRespect = false
|
||||
|
||||
### if specified, the default object type determiner can be overridden here
|
||||
### Note: short-hand notation is supported in some cases, such as "tiger" or "notiger"
|
||||
### Alternatively, you can provide a com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation name here
|
||||
|
||||
Reference in New Issue
Block a user