So I think it may have to do with my actual jsp page.

# Defined in package properties
format.percent = {0,number,##0.00'%'}

<!-- JSP -->
<s:hidden name=" xaction.splitAssistant" id="xactionSplitAssistant"
value="%{getText('format.percent',{xaction.splitAssistant != null ?
xaction.splitAssistant * 100 :''})}" />

the tag above prints:
<input type="hidden" name="xaction.splitAssistant"
value="ognl.NoConversionPossible" id="xactionSplitAssistant">

I assume OGNL has changed it's getText code logic.  Any guess as to how I
can change the tag above to play nicely with newer version of OGNL?


On Sun, Dec 29, 2019 at 12:45 PM Burton Rhodes <burtonrho...@gmail.com>
wrote:

> I don't override anything in my pom.xml files in regards to OGNL.  Looking
> at the dependency analyzer, the resolved OGNL version is v3.1.26.  And I am
> including struts with the following dependencies.
>
>         <dependency>
>             <groupId>org.apache.struts</groupId>
>             <artifactId>struts2-core</artifactId>
>             <version>2.5.22</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.struts</groupId>
>             <artifactId>struts2-spring-plugin</artifactId>
>               <version>2.5.22</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.struts</groupId>
>             <artifactId>struts2-json-plugin</artifactId>
>               <version>2.5.22</version>
>         </dependency>2.5.22
>
>
>
> On Sun, Dec 29, 2019 at 12:35 PM Lukasz Lenart <lukaszlen...@apache.org>
> wrote:
>
>> niedz., 29 gru 2019 o 19:34 Burton Rhodes <burtonrho...@gmail.com>
>> napisał(a):
>> >
>> > After upgrading to v2.5.22 my custom StrutsTypeConverters are having
>> issues
>> > when the passed html form parameter is empty (or null).
>> >
>> > Specifically in my overridden convertFromString(context, values,
>> toClass)
>> > method, the values parameter now contains
>> > values[0]="ognl.NoConversionPossible".  In v2.5.20, the values[0]="".
>> >
>> > Do you know why values[] contains this error text rather than the actual
>> > empty value like it used to?  Is there a setup issue on my end?
>>
>> Do you use the same version of OGNL as provided with Struts?
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>

Reply via email to