Apache Struts 2 Plugin Registry > Home > Spring MVC Plugin |
Name | Spring MVC Plugin |
---|---|
Publisher | Tom Schneider |
License | Open Source (ASL2) |
Version | 1.0.0-beta |
Homepage | http://code.google.com/p/struts2springmvc/ |
Download | http://code.google.com/p/struts2springmvc/downloads/list |
This plugin allows Spring MVC controllers and interceptors to be executed in Struts 2. This plugin is useful for Spring MVC developers want to migrate to struts, but do not want to rewrite their Spring MVC controllers and interceptors.
This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib directory. No other files need to be copied or created.
The first step in using the Spring MVC plugin is to configure your Spring MVC controller in Spring:
Now the controller needs to be configured in Strutsv2:
The controllerName parameter is the name of the controller in the Spring configuration. The ModelAndView viewName is mapped to the Struts 2 result. The model Map is exposed as a model property on the value stack and can be accessed as follows:
Version | Date | Author | Notes |
---|---|---|---|
1.0.0-beta | January 13, 2007 | Tom Schneider | Initial release |