Blog

Struts2-Jsr303-Validation-Plugin 1.0 is available now.

This Plugin works as a bridge between Struts2 and JSR-303 Compliant bean Validator. Some of reference implementation for JSR303 are

  • Hibernate bean validator
  • Apacche Bval

Project Home
Download Plugin

You can use Maven to add plugin in your struts2 application


<dependency>
  <groupId>com.github.umeshawasthi</groupId>
  <artifactId>struts2-jsr303-validation-plugin</artifactId>
  <version>1.0</version>
</dependency>

Once plugin is in your application class path, all you need to extends you jsr303 and you will be ready to use JSR303 Validator.

<package name="default" extends="jsr303">
    <default-interceptor-ref name="jsr303ValidationStack"/>
    // action mapping
 </package>

Please note that you need to add Bean validator in your application.You can add Hibernate bean Validator or Apache BVal either downloading from there download page or with help of Maven

Hibernate Validator

<dependency>
   <groupId>org.hibernate</groupId>
   <artifactId>hibernate-validator</artifactId>
   <version>4.3.1.Final</version>
</dependency>

Apache BVal

<dependency>
   <groupId>org.apache.geronimo.specs</groupId>
   <artifactId>geronimo-validation_1.0_spec</artifactId>
   <version>1.1</version>
</dependency>
 <dependency>
    <groupId>org.apache.bval</groupId>
     <artifactId>org.apache.bval.bundle</artifactId>
     <version>0.5</version>
 </dependency>

Se the project home for download, Maven details, usage guide, etc.:

http://code.google.com/p/struts2-conversation/

v1.7.1 resolves an issue with the error message mechanism from v1.7.0 (see issue #2 on the project home for more details)

For details on the plugin, its usage, Maven information, bug reporting, etc., see the project home:

http://code.google.com/p/struts2-conversation/

The new version features slightly improved performance and the addition of a timeout field for the @BeginConversation annotations.

Other Notes:

  • The names of the interceptors in the struts.xml have changed. There is now a single "conversation" interceptor that should be used for the conversation scope, and, optionally, there is a "sessionField" interceptor that works with the @SessionField annotations.
  • Also, if your Struts version is earlier than 2.3.3, then you will also need the available here: http://mvnrepository.com/artifact/org.apache.commons/commons-lang3/3.1
  • Looking to add better tutorials/guides/documentation next rather than coding. If you have any questions or difficulties, please field them to the "issues" section on the project home indicated below.

Maven:

<dependency>
  <groupId>com.googlecode.struts2-conversation</groupId>
  <artifactId>struts2-conversation-scope-plugin</artifactId>
  <version>1.6.2</version>
</dependency>

Project Home:

http://code.google.com/p/struts2-conversation/

===Release Notes===

  1. Improved memory management and performance
  2. New extension to Config Browser Plugin for viewing Conversation configuration details at run-time

Visit the http://code.google.com/p/struts2-conversation/ project home for more details, example apps, downloads, and Maven dependencies.

Struts 2 plugin to push multiple objects on the value stack using annotations.

Project Home: http://code.google.com/p/struts2-valuestack-outjection/

Check out the project home. Helpful for multi-page flows and multi-tab support.

Project Home

API Home

Download

Maven Dependency
 
<dependency>
  <groupId>com.googlecode.struts2-conversation</groupId>
  <artifactId>struts2-conversation-scope-plugin</artifactId>
  <version>1.3.2</version>
</dependency>

The Struts2 Bootstrap Plugin is now available in version 1.3.0.

The Plugin supports now an easy client validation when using the Struts2 jQuery Plugin.
See the new Client Validation Example in the Showcase App.

Plugin Home: https://cwiki.apache.org/confluence/display/S2PLUGINS/Bootstrap+Plugin
Projekt Home: http://code.google.com/p/struts2-bootstrap/
Showcase and Examples: https://struts.jgeppert.com/struts2-bootstrap-showcase/index.action

Check out the project home. Helpful for multi-page flows and multi-tab support.

Project Home

API Home

Download

Maven Dependency
 
<dependency>
  <groupId>com.googlecode.struts2-conversation</groupId>
  <artifactId>struts2-conversation-scope-plugin</artifactId>
  <version>1.3</version>
</dependency>