tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54314] New: Code generation of TagPlugins: When and Otherwise error when they are used without <c:choose> outside
Date Mon, 17 Dec 2012 07:05:13 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54314

            Bug ID: 54314
           Summary: Code generation of TagPlugins: When and Otherwise
                    error when they are used without <c:choose> outside
           Product: Tomcat 7
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: xshao@ebay.com
    Classification: Unclassified

Created attachment 29773
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29773&action=edit
Patchs for Choose When & Otherwise

There is no "}" when "<c:when> or <c:otherwise>" are used without <c:choose>
outside. 
For example,

<c:choose>
  <c:when test="${true}">
    When 1
    <c:when test="${abc}"> When 2 </c:when>
    <c:otherwise>
       Otherwise
    </c:otherwise> <!-- These two tags will generate code like this "if ($abc})
{} else {",  no "}" at the end" -->
  </c:when>
</c:choose>

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message