Hello Burton. >From your last update it seems you have found a workaround by re-ordering >where the null check was being performed in the getText() expression (being >passed to your custom StrutsTypeConverter). It's good to hear that a >workaround seems to work in your case.
The expression with new ordering that works with Struts 2.5.22 seems to avoid calling getText() when xaction.splitAssistant is null, but with the old expression ordering (with 2.5.20) it seems the custom StrutsTypeConverter would have received some value (possibly a null or an empty string "") when the expression was evaluated. As Ćukasz mentioned, would it be possible for you to open a Struts JIRA ticket for this issue ? If you could create a very small reproducer application (one that recreates the issue using a stripped-down custom StrutsTypeConverter based on the one you use and a basic action with one JSP) and attach it to the JIRA that would also help track down why the behaviour has changed with Struts 2.5.22. Alternatively, would it be possible for you to try the old expression again running with Struts 2.5.22, but turn on "debug" level logging and look for DEBUG statements containing "Unable to convert value using type converter ..." ? Updating this thread with the output from one or two of those statements (if they appear in the logs) might help narrow down a possible cause for the behaviour in 2.5.22. Regards, James. On Sun, Dec 29, 2019 at 1:38 PM Burton Rhodes <burtonrho...@gmail.com> wrote: > It appears I needed to change my tag to the following (removing the null > check from within the getText() method): > > <s:hidden name=" xaction.splitAssistant" id="xactionSplitAssistant" > value="%{xaction.splitAssistant != null > ? getText('format.percent',{xaction.splitAssistant * 100}) : ''}" /> > > On Sun, Dec 29, 2019 at 1:02 PM Burton Rhodes <burtonrho...@gmail.com> > wrote: >> >> 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? >> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org