S2.5.22 custom StrutsTypeConverter values parameter has changed?

2019-12-29 Thread Burton Rhodes
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

Re: S2.5.22 custom StrutsTypeConverter values parameter has changed?

2019-12-29 Thread Lukasz Lenart
niedz., 29 gru 2019 o 19:34 Burton Rhodes 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 paramet

Re: S2.5.22 custom StrutsTypeConverter values parameter has changed?

2019-12-29 Thread Burton Rhodes
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. org.apache.struts struts2-core 2.5.22

Re: S2.5.22 custom StrutsTypeConverter values parameter has changed?

2019-12-29 Thread Burton Rhodes
So I think it may have to do with my actual jsp page. # Defined in package properties format.percent = {0,number,##0.00'%'} the tag above prints: 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

Re: S2.5.22 custom StrutsTypeConverter values parameter has changed?

2019-12-29 Thread Burton Rhodes
It appears I needed to change my tag to the following (removing the null check from within the getText() method): On Sun, Dec 29, 2019 at 1:02 PM Burton Rhodes wrote: > So I think it may have to do with my actual jsp page. > > # Defined in package properties > format.percent = {0,number,##0.00

Re: S2.5.22 custom StrutsTypeConverter values parameter has changed?

2019-12-29 Thread Lukasz Lenart
niedz., 29 gru 2019 o 20:38 Burton Rhodes napisał(a): > > It appears I needed to change my tag to the following (removing the null > check from within the getText() method): > > value="%{xaction.splitAssistant != null > ? getText('format.percent',{xaction.splitAssistant * 100}) : ''}" /> I assum