Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-2097

JBWEB-144 - JSP EL ternary operator requires space before colon

XMLWordPrintable

    • Release Notes
    • Hide
      SHORT DESCRIPTION:
              Provide fix for JBWEB-144.
      LONG DESCRIPTION:
              Patch to fix issue where JSP EL ternary operator requires space before colon.
      MANUAL INSTALL INSTRUCTIONS:
              Replace the existing %JBOSS_HOME%/server/%JBOSSCONF%/jboss-web.deployer/jbossweb.jar with the new jbossweb.jar
      COMPATIBILITY:
             4.2.0.GA CP06, 4.3.0.GA CP04
      SUPERSEDES:
              N/A
      CREATOR:
              Mike Millson
      DATE:
              18-June-2009
      Show
      SHORT DESCRIPTION:         Provide fix for JBWEB-144. LONG DESCRIPTION:         Patch to fix issue where JSP EL ternary operator requires space before colon. MANUAL INSTALL INSTRUCTIONS:         Replace the existing %JBOSS_HOME%/server/%JBOSSCONF%/jboss-web.deployer/jbossweb.jar with the new jbossweb.jar COMPATIBILITY:        4.2.0.GA CP06, 4.3.0.GA CP04 SUPERSEDES:         N/A CREATOR:         Mike Millson DATE:         18-June-2009

      JSP EL that worked on JBoss AS 4.0.5.GA does not work on EAP. For example, the following does not work:

      <c:set var="truevalue" value="true" />
      <c:set var="falsevalue" value="false"/>
      <c:out value="${not empty param.yes?truevalue:falsevalue}"/>

      It throws this error:
      2009-06-11 10:40:57,487 ERROR [org.apache.catalina.core.ContainerBase] Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: /jsp/case305721.jsp(27,3) "${not empty param.yes?truevalue:falsevalue}" contains invalid expression(s): javax.el.ELException: Error Parsing: ${not empty param.yes?truevalue:falsevalue}
      at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

      But this works with a space added before the colon:
      <c:out value="${not empty param.yes?truevalue :falsevalue}"/>

            istudens@redhat.com Ivo Studensky
            rhn-support-mmillson Michael Millson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: