首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

怎么解析jsp页面的,学习笔记

2012-11-07 
如何解析jsp页面的,学习笔记解析,jsp页面之后将整个jsp页面存放到的数据结构中public URL getResource(Str

如何解析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;    }

?

热点排行