The short answer is NO. Long answer "view":
Assuming that Struts is integrated with Spring in your application through ContextLoaderPlugin , you can do one of two things:
A) Create a "ProcessorContext" bean (or whatever you want to name) that you define in your Spring context and access your custom request processor by getting it from the Spring context (which you can go through WebApplicationContextUtils.getWebApplicationContext(getServletContext()) ).
B) If your user processor extends Spring DelegatingRequestProcessor or DelegatingTilesRequestProcessor , you can instead write a new request processor that does what you want functionally, bind it to the Spring context with all your dependencies, and then expand DelegatingRequestProcessor or DelegatingTilesRequestProcessor to get it out of context (via type or identifier) ββand delegate it. This is essentially an extension (A), but it delegates all of the Spring plumbing to the Spring processor extension request, leaving your user processor Spring-independent.
Spring / Struts Integration is described in detail here .
source share