Return-Path: X-Original-To: apmail-struts-commits-archive@minotaur.apache.org Delivered-To: apmail-struts-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC82310715 for ; Thu, 19 Mar 2015 06:00:41 +0000 (UTC) Received: (qmail 20124 invoked by uid 500); 19 Mar 2015 06:00:41 -0000 Delivered-To: apmail-struts-commits-archive@struts.apache.org Received: (qmail 20087 invoked by uid 500); 19 Mar 2015 06:00:41 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 20078 invoked by uid 99); 19 Mar 2015 06:00:41 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2015 06:00:41 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 41999AC0163 for ; Thu, 19 Mar 2015 06:00:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r944292 - in /websites/production/struts/content/docs: create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html json-plugin.html migration-guide.html version-notes-2322.html Date: Thu, 19 Mar 2015 06:00:41 -0000 To: commits@struts.apache.org From: lukaszlenart@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150319060041.41999AC0163@hades.apache.org> Author: lukaszlenart Date: Thu Mar 19 06:00:40 2015 New Revision: 944292 Log: Updates production Added: websites/production/struts/content/docs/version-notes-2322.html Modified: websites/production/struts/content/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html websites/production/struts/content/docs/json-plugin.html websites/production/struts/content/docs/migration-guide.html Modified: websites/production/struts/content/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html ============================================================================== --- websites/production/struts/content/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html (original) +++ websites/production/struts/content/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html Thu Mar 19 06:00:40 2015 @@ -138,7 +138,7 @@ under the License.
-

You can checkout this complete example project (and all the other Getting Started tutorial example projects) from the
Struts 2 GitHub repository at https://github.com/apache/struts-examples. The example projects use Maven
to manage the artifact dependencies and to build the .war files.

+

You can checkout this complete example project (and all the other Getting Started tutorial example projects) from the Struts 2 GitHub repository at https://github.com/apache/struts-examples. The example projects use Maven to manage the artifact dependencies and to build the .war files.

Icon

This tutorial assumes you know how to create a Java web application that uses Maven to manage artifacts and build the web application archive (war) file.

Modified: websites/production/struts/content/docs/json-plugin.html ============================================================================== --- websites/production/struts/content/docs/json-plugin.html (original) +++ websites/production/struts/content/docs/json-plugin.html Thu Mar 19 06:00:40 2015 @@ -441,6 +441,8 @@ public class JSONExample extends ActionS "newName": "custom" } ]]> +

Accepting JSON

Your actions can accept incoming JSON if they are in package which uses json interceptor or by adding reference to it as follow:

+

JSON RPC

The json plugin can be used to execute action methods from javascript and return the output. This feature was developed with Dojo in mind, so it uses Simple Method Definition to advertise the remote service. Let's work it out with an example(useless as most examples).

First write the action:

+ + + + + + + + + Version Notes 2.3.22 + + + + + + + +
+  Home > Guides > Migration Guide > Version Notes 2.3.22 + +
+ + + + + + +
+
+ +
+ + +
+
+

(tick) These are the notes for the Struts 2.3.22 distribution.

(tick) For prior notes in this release series, see Version Notes 2.3.20

  • If you are a Maven user, you might want to get started using the Maven Archetype.
  • Another quick-start entry point is the blank application. Rename and deploy the WAR as a starting point for your own development.
Maven Dependency
+ +

You can also use Struts Archetype Catalog like below

Struts Archetype Catalog
+ +
Staging Repository
+ +

Internal Changes

  • fixed flow in DefaultActionInvocation and when using the Convention Plugin, see WW-4433
  • defined new plugin to support Java 8, check Java 8 Support Plugin and see WW-4435
  • fixed problem with style attribute, see WW-4430
  • fixed problem with converting values from ActionContext, see WW-4427
  • converters are again applied to values c oming from the context, see WW-4427
  • struts.ognl.allowStaticMethodAccess works again, see WW-4429
  • fixed memory leak in CDI plugin, see WW-4441
  • fixed problem with hidden field which silently drops 'label' attribute, see WW-4447
  • fixed parameters encoding in ServletRedirectAction before checking for valid URI, see WW-4448
  • css_xhtml hidden input adding table row markup, see& #160;WW-4454
  • and many other improvements, please check the version notes

 

+ Icon +
+

Please read information about new internal security mechanism introduced with the previous version and extended in this version!

+
+
+

Issue Detail

Issue List

Other resources



+
+ + +
+
+ + +