tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15966] New: - Jasper parser is incorrectly handling empty jsp:body elements
Date Fri, 10 Jan 2003 18:54:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15966>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15966

Jasper parser is incorrectly handling empty jsp:body elements

           Summary: Jasper parser is incorrectly handling empty jsp:body
                    elements
           Product: Tomcat 5
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Ryan.Lubke@Sun.COM


Given the following productions:

JspBodyBody ::= (S? JspBodyEmptyBody)
              | (S> '>' (JspBodyBodyContent - '') '</jsp:boyd>'

and

JspBodyEmptyBody ::=   '/>'
                     | '></jsp:body>'
                     | <TRANSLATION_ERROR>

Jasper generates a translation error with the error message of 
"&lt;jsp:body&gt; must not have any attributes" When it encounters 
something like:

  <ctm:action>
     <jsp:body />
  <ctm:action>


For the following code snippet:

   <ctm:action>
      <jsp:body></jsp:body>
   <cts:action>

This error message is generated at translation time:

  "Empty body not allowed for &lt;jsp:body&gt;"  

which is incorrect according to the grammar.

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


Mime
View raw message