tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danno Ferrin" <DFER...@novell.com>
Subject PATCH: tagdependent tags should not parse content
Date Thu, 09 Dec 1999 01:19:24 GMT
The bodycontent=tagdependent should provide a literal copy of the tag content.  =JSP will handle
JSP elements first, but tagdependent shoudlnt.

Index: src/share/org/apache/jasper/compiler/Parser.java
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat/src/share/org/apache/jasper/compiler/Parser.java,v
retrieving revision 1.6
diff -C3 -r1.6 Parser.java
*** Parser.java	1999/11/08 03:14:27	1.6
--- Parser.java	1999/12/09 01:17:40
***************
*** 752,758 ****
                              String tagEnd = "</"+tag+">";
                              // Parse until the end of the tag body. 
                              // Then skip the tag end... 
!                             parser.parse(tagEnd);
                              reader.advance(tagEnd.length());
                              listener.handleTagEnd(bodyStart, reader.mark(), prefix, 
                                                    shortTagName, attrs, tli, ti);
--- 752,764 ----
                              String tagEnd = "</"+tag+">";
                              // Parse until the end of the tag body. 
                              // Then skip the tag end... 
!                             if (bc.equalsIgnoreCase(TagInfo.BODY_CONTENT_TAG_DEPENDENT))
!                                 // accept no core elements for tag dependent,
!                                 // i.e. literal inclusion of the content
!                                 parser.parse(tagEnd, new Class[] {});
!                             else
!                                 // it is JSP body content, so accept all core elements
!                                 parser.parse(tagEnd);
                              reader.advance(tagEnd.length());
                              listener.handleTagEnd(bodyStart, reader.mark(), prefix, 
                                                    shortTagName, attrs, tli, ti);


Mime
View raw message