Index: java/org/apache/jasper/compiler/ParserController.java =================================================================== --- java/org/apache/jasper/compiler/ParserController.java (revision 783063) +++ java/org/apache/jasper/compiler/ParserController.java (working copy) @@ -22,8 +22,10 @@ import java.io.InputStreamReader; import java.net.JarURLConnection; import java.net.URL; +import java.util.jar.JarFile; +import java.util.Iterator; +import java.util.List; import java.util.Stack; -import java.util.jar.JarFile; import org.apache.jasper.JasperException; import org.apache.jasper.JspCompilationContext; @@ -122,6 +124,29 @@ /** + * For includePrelude and coda + * + * @param files The paths of the resource to be included. + * @param nodes The parent node of the include directive. + */ + public Node.Nodes parseIncludeDirectives(List files, Node.Nodes nodes) + throws FileNotFoundException, JasperException, IOException { + isTagFile = ctxt.isTagFile(); + directiveOnly = true; + if (files != null) { + Iterator iter = files.iterator(); + while (iter.hasNext()) { + Node.Nodes directives = doParse((String) iter.next(), null, null); + for (int i=0;directives!=null&&i