horwat 01/02/08 16:19:21
Modified: jasper/src/share/org/apache/jasper/compiler Parser.java
Log:
It is up to the tag implementation to process the body of the tag dependent tag.
Submitted by: Jeff Bonevich & Danno Ferrin
Bugzilla #546
Revision Changes Path
1.7 +7 -1
jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/Parser.java
Index: Parser.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/Parser.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Parser.java 2000/11/06 21:04:56 1.6
+++ Parser.java 2001/02/09 00:19:19 1.7
@@ -858,7 +858,13 @@
String tagEnd = "</"+tag+">";
// Parse until the end of the tag body.
// Then skip the tag end...
- parser.parse(tagEnd);
+ if
(bc.equalsIgnoreCase(TagInfo.BODY_CONTENT_TAG_DEPENDENT))
+ // accept no core elements for tag dependent,
+ // ie. literal inclusion of the content
+ parser.parse(tagEnd, new Class[] {});
+ else
+ // it is JSP body content, so accept all core elements
+ parser.parse(tagEnd);
try {
reader.advance(tagEnd.length());
} catch (ParseException ex) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]