如何解析jsp页面的,学习笔记
- 解析,jsp页面之后将整个jsp页面存放到的数据结构中
public URL getResource(String res) throws MalformedURLException { URL result = null; if (res.startsWith("/META-INF/")) { // This is a tag file packaged in a jar that is being compiled URL jarUrl = tagFileJarUrls.get(res); if (jarUrl == null) { jarUrl = tagFileJarUrl; } if (jarUrl != null) { result = new URL(jarUrl.toExternalForm() + res.substring(1)); } } else if (res.startsWith("jar:file:")) { // This is a tag file packaged in a jar that is being checked // for a dependency result = new URL(res); } else { result = context.getResource(canonicalURI(res)); } return result; }
?