Versions Compared

Key

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

...

Using J2SE 5 ("Tiger") support

...

with WebWork

Info
titleWork in progress

This is a work in progress and not yet finished! More complex examples will follow. For now, have a look at the unit tests within the xwork-tiger project path.

To use J2SE 5 support with WebWork, you have to add xwork-tiger.jar to your classpath.
The xwork-tiger.jar can be obtained via the ivy repository and is located in the lib/tiger directory.

Interceptor Annotations

To use these annotations, you have to specify the AnnotationWorkflowInterceptor to your interceptor stack.

Annotation

Description

After Annotation

Marks a action method that needs to be executed before the result.

Before Annotation

Marks a action method that needs to be executed before the main action method.

BeforeResult Annotation

Marks a action method that needs to be executed before the result.

...

Type Conversion Annotations

If the xwork-tigerjar is added to the classpath, you will directly have type conversion support for Maps and Collections using generics.

In short, instead of specifying the types found in collections and maps as documented in Type Conversion, the collection's generic type is used. This means you most likely don't need any ClassName-conversion.properties files.

If you want to use annotation based type conversion, you have to annotate the class or interface with the Conversion Annotation.

...