[jboss-jira] [JBoss JIRA] (WFLY-10718) Usage of static fields from java.lang classes as EL expressions in JSPs doesn't work for servlet 4.0

Jan Stourac (JIRA) issues at jboss.org
Thu Jul 19 07:23:00 EDT 2018


     [ https://issues.jboss.org/browse/WFLY-10718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Stourac updated WFLY-10718:
-------------------------------
    Description: 
This seems to be back but this time with Servlet 4.0 only as 3.1 seems to work just fine. Current test is already in [Wildfly testsuite|https://github.com/wildfly/wildfly/blob/master/testsuite/integration/basic/src/test/java/org/wildfly/test/integration/jsp/JspELTestCase.java] but it does not cover Servlet 4.0.

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

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

However, the {code}${Boolean.TRUE}{code} and {code}${Integer.MAX_VALUE}{code} in the above example aren't evaluated correctly and instead a blank string is rendered for them. 

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

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

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

However, the {code}${Boolean.TRUE}{code} and {code}${Integer.MAX_VALUE}{code} in the above example aren't evaluated correctly and instead a blank string is rendered for them. 

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



> Usage of static fields from java.lang classes as EL expressions in JSPs doesn't work for servlet 4.0
> ----------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-10718
>                 URL: https://issues.jboss.org/browse/WFLY-10718
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (Undertow)
>            Reporter: Jan Stourac
>            Assignee: Stuart Douglas
>
> This seems to be back but this time with Servlet 4.0 only as 3.1 seems to work just fine. Current test is already in [Wildfly testsuite|https://github.com/wildfly/wildfly/blob/master/testsuite/integration/basic/src/test/java/org/wildfly/test/integration/jsp/JspELTestCase.java] but it does not cover Servlet 4.0.
> Java EE7 (which supports EL 3.0 spec) allows JSPs to use EL expressions like:
> {code}
> <html>
>    <body>
>       foo: --- ${Boolean.TRUE} ---<br>
>       bar: --- ${Integer.MAX_VALUE} ---<br>
>    </body>
> </html>
> {code}
> However, the {code}${Boolean.TRUE}{code} and {code}${Integer.MAX_VALUE}{code} in the above example aren't evaluated correctly and instead a blank string is rendered for them. 
> More details in the linked forum thread https://developer.jboss.org/thread/271825



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list