Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-15538

(7.2.z) Usage of static fields from java.lang classes as EL expressions in JSPs doesn't work when requested more than once

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.2.0.GA
    • 7.2.0.CD14
    • Undertow
    • None

      Java EE7 (which supports EL 3.0 spec) allows JSPs to use EL expressions like:

      <html>
         <body>
            foo: --- ${Boolean.TRUE} ---<br>
            bar: --- ${Integer.MAX_VALUE} ---<br>
         </body>
      </html>
      

      However, the

      ${Boolean.TRUE}
      

      and

      ${Integer.MAX_VALUE}
      

      in the above example aren't evaluated correctly if request is send more than once, and instead a blank string is rendered for them. The jsp-expression-lang.war used in Steps to reproduce works correctly in 7.2.0.CD13.

      More details in the linked forum thread https://developer.jboss.org/thread/271825.

      The existing tests(JspELTestCase) doesn't cover the situation when request is sent more than once.

            thofman Tomas Hofman
            akrajcik@redhat.com Adam Krajcik
            Jan Stourac Jan Stourac
            Jan Stourac Jan Stourac
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: