Lines 22-27
Link Here
|
22 |
import java.util.Map; |
22 |
import java.util.Map; |
23 |
|
23 |
|
24 |
import javax.servlet.ServletContext; |
24 |
import javax.servlet.ServletContext; |
|
|
25 |
import javax.servlet.jsp.JspContext; |
25 |
|
26 |
|
26 |
import org.apache.tomcat.util.digester.Digester; |
27 |
import org.apache.tomcat.util.digester.Digester; |
27 |
import org.apache.tomcat.util.digester.RuleSet; |
28 |
import org.apache.tomcat.util.digester.RuleSet; |
Lines 102-108
Link Here
|
102 |
private static String idFor(String url) { |
103 |
private static String idFor(String url) { |
103 |
URL id = ServletContext.class.getResource("resources/" + url); |
104 |
URL id = ServletContext.class.getResource("resources/" + url); |
104 |
if (id == null) { |
105 |
if (id == null) { |
105 |
id = ServletContext.class.getResource("jsp/resources/" + url); |
106 |
id = JspContext.class.getResource("resources/" + url); |
106 |
} |
107 |
} |
107 |
return id.toExternalForm(); |
108 |
return id.toExternalForm(); |
108 |
} |
109 |
} |