Convenience class for Spring-aware Struts 1.2 MappingDispatchActions.
Provides a reference to the current Spring application context, e.g.
for bean lookup or resource loading. Auto-detects a ContextLoaderPlugIn
context, falling back to the root WebApplicationContext. For typical
usage, i.e. accessing middle tier beans, use a root WebApplicationContext.
For classic Struts Actions, DispatchActions or LookupDispatchActions,
use the analogous
ActionSupport ActionSupport or
DispatchActionSupport DispatchActionSupport /
LookupDispatchActionSupport LookupDispatchActionSupport class.
As an alternative approach, you can wire your Struts Actions themselves
as Spring beans, passing references to them via IoC rather than looking
up references in a programmatic fashion. Check out
DelegatingActionProxy DelegatingActionProxy and
DelegatingRequestProcessor DelegatingRequestProcessor .
author: Juergen Hoeller since: 1.1.3 See Also: ContextLoaderPlugIn.SERVLET_CONTEXT_PREFIX See Also: WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE See Also: org.springframework.web.context.ContextLoaderListener See Also: org.springframework.web.context.ContextLoaderServlet See Also: ActionSupport See Also: DispatchActionSupport See Also: LookupDispatchActionSupport See Also: DelegatingActionProxy See Also: DelegatingRequestProcessor |