7.0.77 (latest version in EPEL repository) On Thu, Jun 1, 2017 at 10:27 AM, Christopher Schultz < ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Chris, > > On 5/31/17 6:31 PM, Chris Cheshire wrote: > > I am using tomcat 7 on CentOS 7 and I need to pass a null value to > > tag attributes of type Long/Integer/Float, however it is *always* > > coerced to zero. > > > > <%@attribute name="parentId" required="true" rtexprvalue="true" > > type="java.lang.Long" %> > > > > Changing required to false does nothing. I tried setting the > > system property org.apache.el.parser.COERCE_TO_ZERO to false in > > tomcat.conf (-Dorg.apache.el.parser.COERCE_TO_ZERO=false with my > > other JAVA_OPTS) but this does nothing. The value before it hits > > the tag is null and inside the tag is 0. If I query the System > > properties it shows it as set to false, but Tomcat is not honoring > > it and is still coercing nulls to zero. I understand the spec says > > to do this etc but that defeats the purpose of using an object vs > > atomic type in the first place and is horribly shortsighted. > > > > Upgrading to Tomcat 8 is not a solution unfortunately as there is > > no RPM for it. > > > > How do I pass a null Long/Float/Integer as a tag attribute and have > > it kept as null and not turned into an incorrect value? > > What exact version of Tomcat 7 are you running? > > - -chris > -----BEGIN PGP SIGNATURE----- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIcBAEBCAAGBQJZMCRCAAoJEBzwKT+lPKRYveMP/RbE4suNmhmV6Yk7+OY3iiv0 > BuM6TruMa9ijRhewZJJHBE1KSjskZjNkA7Ls8+pdKUDHNExeLSbIY+k56XHT4Yvb > Y8pnIMeFcMTYIBHUjTNmyCYJm8B0CD+B4L5hJM/dLbVLASp82JFPw3lQt0mhsrua > AX7bpE1pRooU1DpiB2FeJhDhmKywWzq34o5QA8jyq2egnlPD2ip0P4TwpjDe7FzM > z2szb6lH2qI/9SWEKOxfc7FKMmtpM2kCtQO8gBY0WatGLxGlMxBAXQVGmV/70dS4 > /lIyAsKfiB1HeNMhykRniKKh6miNCvVsslF4pn1wq5MLXSmYHTSV1OpFWG5yVrLe > NZVIJMiLO9NMQLEgjqNwJZfrdd6JB67LUQwulAM7r2AHzHl3LJI6IAxY5LXC41OY > jRqzNCJkriJkThrC/bFYfdb28iishM0wT/q+/JLi/3M9HEPPMKJH80oDFzFsfhum > jUfUENyVwxczUS4IAmEAPuESRZgXoXrs8h1XImH/04FJfwMxIY4Owm5+zlYH2qde > H5qxlYwUkw035dDTBr/Wi7MPh1K7fxwWnnV4qFgPGImFzRx93C5VUO3AfCm6JDsv > obutg31VzU7dxph1o1Bx4UsR/44wcK+y/eiEKgd3RBZNtpWuApJa7Yhuj1qtShJY > nHGeLzQPm33MGBvL62P9 > =TQH3 > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >