Home > Guides > Migration Guide > Key Changes From WebWork 2 |
The upgrade path from WebWork 2 to Struts 2 is smooth glide. Here's the roadmap.
For other changes from WebWork 2, see the "Members to rename", "New property settings", "New features or feature changes", and "Removed or deprecated" sections.
WebWork 2 | Struts 2 |
---|---|
| |
| |
| |
| |
DispatcherUtil | Dispatcher |
com.opensymphony.webwork.config.Configuration | org.apache.struts2.config.Settings |
The tag prefix conventions in the example applications have changed.
JSP | s: | <s:form ...> |
---|---|---|
Freemarker | s. | <@s.form ...> |
Velocity | s | #sform ( ... ) |
struts.enable.DynamicMethodInvocation | Enable support for the hardwired |
---|
prepare
interceptor now uses reflection to call prepare_Method_ where method is the action method configured for the particular action in struts.xml
.
workflow
in struts-default.xml
) now uses reflection to call validateMethod
on the action class that implements Validateable interface where method
is the action method configured for the particular action in struts.xml
.
AroundInterceptor | The AroundInterceptor has been removed. If your application extends the AroundInterceptor, either import the class into your source code form WebWork 2 (pursuant to the Open Symphony License) and modify it to server as your own base class, or rewrite your interceptor. |
---|---|
| Support for the "oldSyntax" is removed. |
Rich text editor tag | Rich text editor tag is removed and replaced by Dojo's rich text editor |
| The convention of trying a "do" form of an action method is not supported. In WebWork,
|
| Calling the "default" method via "doDefault" is not supported. |
IOC framework | Deprecated in WebWork 2.2, the internal IOC framework is removed in Struts 2. Spring is the ObjectFactory default. |