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

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

<dependency>
  <groupId>org.apache.struts</groupId>
  <artifactId>struts2-core</artifactId>
  <version>2.5.12</version>
</dependency>

You can also use Struts Archetype Catalog like below

mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/
<repositories>
  <repository>
    <id>apache.nexus</id>
    <name>ASF Nexus Staging</name>
    <url>https://repository.apache.org/content/groups/staging/</url>
  </repository>
</repositories>

Internal Changes

 

This release contains fixes related to S2-047 and S2-049, please read them carefully!

This version contains a new conversion logic which is Locale aware and can affect your application when you are using some uncommon solutions. One of these is to use a number literals in Freemarker template. In such case Freemarker treats them as numbers (as BigDecimals) and Struts logic converts them to a string with decimal zero, see the example below:

<@s.textfield name="userId" value=35/>

this snippet will produce the following Html control:

<input type="text" name="userId" value="35.0"/>

To resolves this problem you must add quotes around the value:

<@s.textfield name="userId" value="35"/>

This is due how Freemarker treats a number literals.

 

Issue Detail

Issue List

Other resources