geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viol...@apache.org
Subject svn commit: r1371029 - /geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Compiler.java
Date Thu, 09 Aug 2012 03:08:24 GMT
Author: violalu
Date: Thu Aug  9 03:08:24 2012
New Revision: 1371029

URL: http://svn.apache.org/viewvc?rev=1371029&view=rev
Log:
hanlde file url when compile jsp

Modified:
    geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Compiler.java

Modified: geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Compiler.java
URL: http://svn.apache.org/viewvc/geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Compiler.java?rev=1371029&r1=1371028&r2=1371029&view=diff
==============================================================================
--- geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Compiler.java
(original)
+++ geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Compiler.java
Thu Aug  9 03:08:24 2012
@@ -505,7 +505,7 @@ public abstract class Compiler {
             try {
                 String key = include.getKey();
                 URL includeUrl;
-                if (key.startsWith("jar:")) {
+                 if (key.startsWith("jar:") ||key.startsWith("file:")) {
                     includeUrl = new URL(key);
                 } else {
                     includeUrl = ctxt.getResource(include.getKey());



Mime
View raw message