%{control.current +
- This is ultimately the statement that I need to fulfill. I have it in the s: if tag, and I use a test to see if this value is in a specific range.
Ultimately, I get string concatenation rather than appending, because both sides of the complement are not considered as numeric OGNL types. Catching a little, I see that
%{control.current + control.current}
leads to a numerical addition, so the value of displayRows, which was set earlier in the s: set tag, is really considered a non-numeric value. Here is my s: set tag:
<s:set name="displayRows" value="%{#application['app_settings'].settings['MAX ACCESS FIELD TITLES ROWS']}" />
Settings are a map in Java. While the key is always a string ... well ... the value is not always an integer because various application settings are stored. Therefore, for a value type, it is best to use Object. And I think this is a problem. OGNL does not consider this to be something that can be automatically converted to a numeric type.
langauge http://incubator.apache.org/ognl/language-guide.html, , OGNL ", displayRows, 15 REALLY, ". . , , . OGNL, s: set Java, , .