Author: lukaszlenart Date: Fri Jun 12 09:18:43 2015 New Revision: 954576 Log: Updates production Added: websites/production/struts/content/docs/bean-validation-plugin.html Modified: websites/production/struts/content/docs/interceptors.html websites/production/struts/content/docs/plugin-developers-guide.html websites/production/struts/content/docs/struts-defaultxml.html websites/production/struts/content/docs/struts-next.html websites/production/struts/content/docs/tutorials.html Added: websites/production/struts/content/docs/bean-validation-plugin.html ============================================================================== --- websites/production/struts/content/docs/bean-validation-plugin.html (added) +++ websites/production/struts/content/docs/bean-validation-plugin.html Fri Jun 12 09:18:43 2015 @@ -0,0 +1,283 @@ + + + + + + + + + + + + + + + + + + + Bean Validation Plugin + + + + + + + +
+  Home > Guides > Plugin Developers Guide > Bean Validation Plugin + +
+ + + + + + +
+
+ +
+ + +
+
+

Setup

In order to use the Bean Validation plugin, you first need to add the JAR file to the WEB-INF/lib directory of your application or include the dependency in your project's Maven POM file.

pom.xml
+ +

Where X.X.X is the current version of Struts 2. Please remember that the Bean Validation Plugin is available from version 2.5.

Configuration

 

struts.xml
+ +

Bean Validation Example

 

com.example.actions.BeanValidationAction
+ +
+
+ + +
+
+ + + Modified: websites/production/struts/content/docs/interceptors.html ============================================================================== --- websites/production/struts/content/docs/interceptors.html (original) +++ websites/production/struts/content/docs/interceptors.html Fri Jun 12 09:18:43 2015 @@ -145,11 +145,11 @@ under the License.

Many Actions share common concerns. Some Actions need input validated. Other Actions may need a file upload to be pre-processed. Another Action might need protection from a double submit. Many Actions need drop-down lists and other controls pre-populated before the page displays.

The framework makes it easy to share solutions to these concerns using an "Interceptor" strategy. When you request a resource that maps to an "action", the framework invokes the Action object. But, before the Action is executed, the invocation can be intercepted by another object. After the Action executes, the invocation could be intercepted again. Unsurprisingly, we call these objects "Interceptors."

+/*]]>*/

+ + + +

M2 (alpha Struts 3)

  1. Finish merging XWork code base (rename packages)
  2. Rename Struts 2 packages to org.apache.struts3
  3. Use logging layer from Log4j2 or https://code.google.com/p/anodyzed/ (Chris Pratt is willing to donate that project to Struts)
  4. Switch to OGNL 4
    1. we must release it first
    2. also we need better API interfaces to allow integrate Struts with other EL engines, ie.: MVEL - right now the whole conversion layer is hardly tied with OGNL
  5. Switch to Servlet Specification 3.0
    1. drop embedded JSP plugin

M3 (alpha Struts 3)

< ol>
  • Divide core into api and spi
  • M4 (beta 1 Struts 3)

    1. move plugins to separated project
      1. disconnect plugins release cycle from core release

    Cleanup website

    There should be just one project website - Apache Struts. Right now there is the main website - Apache Struts project, subsite Apache Struts 1 and another subsite Apache Struts 2. After announcing EOL of Struts 1, we basically supporting just one version or rather branch - Apache Struts 2 which should be at some point converted just into Apache Struts (version 2.5, version 3.0, version 3.1, etc.).

    With that in mind we should have just one website to manage the project.

    Undiscussed ideas

    Modified: websites/production/struts/content/docs/tutorials.html ============================================================================== --- websites/production/struts/content/docs/tutorials.html (original) +++ websites/production/struts/content/docs/tutorials.html Fri Jun 12 09:18:43 2015 @@ -128,43 +128,15 @@ under the License.
    Icon
    -

    The framework documentation is written for active web developers and assumes a working knowledge about how Java web applications are built. For more about the underlying nuts and bolts, see the Key Technologies Primer.

    +

    The framework documentation is written for active web developers and assumes a working knowledge about how Java web applications are built. For more about the underlying nuts and bolts, see the Key Technologies Primer.

    - -
    -


    -Several tutorials are available to help you get started with the framework, from all-purpose "soup to nuts" tutorials to specialty tutorials on portlets and database access.

    - -

    Primers

    - - - - -

    Speciality

    - - - - -

    Examples

    - -

    Several example applications are bundled with the framework, as ready-to-deploy WARs.

    - -

    Blank

    An "empty" application that you can use as the starting point for your own projects.

    MailReader

    A simple application that demonstrates best practices.

    Portlet

    An application demonstrating portlet support

    Showcase

    A sampling of common (and not so common) use cases.

    Other Examples

    Simple examples and links to "powered by" sites

    - - -

    For the complete source code to the applications, see the source code distribution.

    - -

    Errata?

    - -


    Several tutorials are available to help you get started with the framework, from all-purpose "soup to nuts" tutorials to specialty tutorials on portlets and database access.

    Primers

    Speciality

    Examples

    Several example applications are bundled with the framework, as ready-to-deploy WARs .

    Blank

    An "empty" application that you can use as the starting point for your own projects.

    MailReader

    A simple application that demonstrates best practices.

    Portlet

    An application demonstrating portlet support

    Showcase

    A sampling of common (and not so common) use cases.

    Other Examples

    Simple examples and links to "powered by" sites

    For the complete source code to the applications, see the source code distribution.

    Errata?

    Icon

    To suggest a change or a correction to any part of the documentation, log in and leave a comment on the appropriate page. We are always looking for help with the documentation!

    - -

    Next: Guides