Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • As of Struts 2.0.2, Spring is a plugin. If an application specifies the Spring object factory in struts.properties, also include the struts2-spring-plugin.jar on the application's classpath.
  • The Ajax theme is updated to Dojo 0.4, and some tag attributes have changed.

New Features and

...

Plugins

  • Codebehind Plugin: Reduce mundane configuration by using "page controller" conventions. (WW-1515)
  • Zero Configuration: Optionally, eliminate or reduce XML configuration can be replaced with convention and annotation. (wqw-1491)
  • Showcase: A multiple fileupload example is addedExplore multiple file uploading through our new example. (WW-1479)
  • Action tag: A flush attribute is added to disable flushing, which can throw an exception in some cases. The exception is swallowed, but disabling flush avoids the exception altogetherEliminate unwanted exceptions with the new flush attribute. (WW-1472)
  • Roles Interceptor: Integrate JAAS with a new interceptor - now on the default stack. (WW-14771469)Interceptors: Added Roles Interceptor to default stack. If configured, an Action will only be executed if the user has the correct JAAS role. (WW-1469
  • Localized Links: Use the new key attribute to streamline link markup. (WW-1458)
  • Constant Configuration: Override factory default settings from any XML configurtion document, including web.xml! (WW-1421)

Key Changes

  • Checkboxlist tag: CheckboxList with value as Map should have the map keys compared instead of its value. (WW-1471)
  • Internally, Struts 2 uses it's own dependency injection container, based on Google Guice. Applications are free to use Spring, Plexus, or even your own copy of Guice for any dependency injection needs. Actions can still be instantiated via the Spring configuration, when desired.

...