Versions Compared

Key

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

...

Note

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

Note

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:

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

this snippet will produce the following Html control:

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

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

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

This is due how Freemarker treats a number literals.

 

Issue Detail

...