I will have others longer than this, is there an override on the length?

On 25/05/2022 13:34, Lukasz Lenart wrote:
śr., 25 maj 2022 o 14:22 Greg Huber <gregh3...@gmail.com> napisał(a):
Would there have been any changes to the validator?

This is now not working:

      <validator type="expression">
          <param name="expression"><![CDATA[
            !( (bean.address.postcode1 == null ||
bean.address.postcode1.trim().length() == 0) and (bean.address.postcode2
!= null && bean.address.postcode2.trim().length() > 0)
               || (bean.address.postcode1 != null &&
bean.address.postcode1.trim().length() > 0) and (bean.address.postcode2
== null || bean.address.postcode2.length() == 0)
            )
          ]]></param>
          <message key="postcodes.error.bothpostcodes">unspecified
key</message>
      </validator>
OGNL expression max length has been defined by default to 256
characters, the above has 351
https://issues.apache.org/jira/browse/WW-5179


Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to