package

org.springframework.web.struts

Support classes for integrating a Struts web tier with a Spring middle tier which is typically hosted in a Spring root WebApplicationContext.

Supports easy access to the Spring root WebApplicationContext from Struts Actions via the ActionSupport and DispatchActionSupport classes. Actions have full access to Spring's WebApplicationContext facilities in this case, and explicitly look up Spring-managed beans.

Also supports wiring Struts Actions as Spring-managed beans in a ContextLoaderPlugIn context, passing middle tier references to them via bean references, using the Action path as bean name. There are two ways to make Struts delegate Action lookup to the ContextLoaderPlugIn:

  • Use DelegationActionProxy as Action "type" in struts-config. There's no further setup necessary; you can choose any RequestProcessor. Each such proxy will automatically delegate to the corresponding Spring-managed Action bean in the ContextLoaderPlugIn context.
  • Configure DelegatingRequestProcessor as "processorClass" in struts-config, using the original Action "type" (possibly generated by XDoclet) or no "type" at all. To also use Tiles, configure DelegatingTilesRequestProcessor instead.

Classes

ActionSupport This class is deprecated. as of Spring 3.0  
AutowiringRequestProcessor This class is deprecated. as of Spring 3.0  
AutowiringTilesRequestProcessor This class is deprecated. as of Spring 3.0  
ContextLoaderPlugIn This class is deprecated. as of Spring 3.0  
DelegatingActionProxy This class is deprecated. as of Spring 3.0  
DelegatingActionUtils This class is deprecated. as of Spring 3.0  
DelegatingRequestProcessor This class is deprecated. as of Spring 3.0  
DelegatingTilesRequestProcessor This class is deprecated. as of Spring 3.0  
DispatchActionSupport This class is deprecated. as of Spring 3.0  
LookupDispatchActionSupport This class is deprecated. as of Spring 3.0  
MappingDispatchActionSupport This class is deprecated. as of Spring 3.0  
SpringBindingActionForm This class is deprecated. as of Spring 3.0