Lines 22-29
Link Here
|
22 |
import java.io.InputStreamReader; |
22 |
import java.io.InputStreamReader; |
23 |
import java.net.JarURLConnection; |
23 |
import java.net.JarURLConnection; |
24 |
import java.net.URL; |
24 |
import java.net.URL; |
|
|
25 |
import java.util.jar.JarFile; |
26 |
import java.util.Iterator; |
27 |
import java.util.List; |
25 |
import java.util.Stack; |
28 |
import java.util.Stack; |
26 |
import java.util.jar.JarFile; |
|
|
27 |
|
29 |
|
28 |
import org.apache.jasper.JasperException; |
30 |
import org.apache.jasper.JasperException; |
29 |
import org.apache.jasper.JspCompilationContext; |
31 |
import org.apache.jasper.JspCompilationContext; |
Lines 122-127
Link Here
|
122 |
|
124 |
|
123 |
|
125 |
|
124 |
/** |
126 |
/** |
|
|
127 |
* For includePrelude and coda |
128 |
* |
129 |
* @param files The paths of the resource to be included. |
130 |
* @param nodes The parent node of the include directive. |
131 |
*/ |
132 |
public Node.Nodes parseIncludeDirectives(List files, Node.Nodes nodes) |
133 |
throws FileNotFoundException, JasperException, IOException { |
134 |
isTagFile = ctxt.isTagFile(); |
135 |
directiveOnly = true; |
136 |
if (files != null) { |
137 |
Iterator iter = files.iterator(); |
138 |
while (iter.hasNext()) { |
139 |
Node.Nodes directives = doParse((String) iter.next(), null, null); |
140 |
for (int i=0;directives!=null&&i<directives.size();i++) { |
141 |
nodes.add(directives.getNode(i)); |
142 |
} |
143 |
} |
144 |
} |
145 |
return nodes; |
146 |
} |
147 |
|
148 |
|
149 |
/** |
125 |
* Processes an include directive with the given path. |
150 |
* Processes an include directive with the given path. |
126 |
* |
151 |
* |
127 |
* @param inFileName The path to the resource to be included. |
152 |
* @param inFileName The path to the resource to be included. |