本文整理汇总了Java中org.apache.jasper.servlet.JspCServletContext类的典型用法代码示例。如果您正苦于以下问题:Java JspCServletContext类的具体用法?Java JspCServletContext怎么用?Java JspCServletContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JspCServletContext类属于org.apache.jasper.servlet包,在下文中一共展示了JspCServletContext类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initServletContext
import org.apache.jasper.servlet.JspCServletContext; //导入依赖的package包/类
protected void initServletContext(ClassLoader classLoader)
throws IOException, JasperException {
// TODO: should we use the Ant Project's log?
PrintWriter log = new PrintWriter(System.out);
URL resourceBase = new File(uriRoot).getCanonicalFile().toURI().toURL();
context = new JspCServletContext(log, resourceBase, classLoader);
if (isValidateTld()) {
context.setInitParameter(Constants.XML_VALIDATION_TLD_INIT_PARAM, "true");
}
if (isValidateXml()) {
context.setInitParameter(Constants.XML_VALIDATION_INIT_PARAM, "true");
}
context.setInitParameter(Constants.XML_BLOCK_EXTERNAL_INIT_PARAM,
String.valueOf(isBlockExternal()));
tldLocationsCache = TldLocationsCache.getInstance(context);
rctxt = new JspRuntimeContext(context, this);
jspConfig = new JspConfig(context);
tagPluginManager = new TagPluginManager(context);
}
开发者ID:liaokailin,项目名称:tomcat7,代码行数:21,代码来源:JspC.java
示例2: initServletContext
import org.apache.jasper.servlet.JspCServletContext; //导入依赖的package包/类
protected void initServletContext(ClassLoader classLoader) throws IOException, JasperException {
// TODO: should we use the Ant Project's log?
PrintWriter log = new PrintWriter(System.out);
URL resourceBase = new File(uriRoot).getCanonicalFile().toURI().toURL();
context = new JspCServletContext(log, resourceBase, classLoader);
if (isValidateTld()) {
context.setInitParameter(Constants.XML_VALIDATION_TLD_INIT_PARAM, "true");
}
if (isValidateXml()) {
context.setInitParameter(Constants.XML_VALIDATION_INIT_PARAM, "true");
}
context.setInitParameter(Constants.XML_BLOCK_EXTERNAL_INIT_PARAM, String.valueOf(isBlockExternal()));
tldLocationsCache = TldLocationsCache.getInstance(context);
rctxt = new JspRuntimeContext(context, this);
jspConfig = new JspConfig(context);
tagPluginManager = new TagPluginManager(context);
}
开发者ID:how2j,项目名称:lazycat,代码行数:19,代码来源:JspC.java
示例3: initServletContext
import org.apache.jasper.servlet.JspCServletContext; //导入依赖的package包/类
private void initServletContext() {
try {
context =new JspCServletContext
(new PrintWriter(new OutputStreamWriter(System.out, "UTF-8")),
new URL("file:" + uriRoot.replace('\\','/') + '/'));
tldScanner = new TldScanner(context, isValidationEnabled);
// START GlassFish 750
taglibs = new ConcurrentHashMap<String, TagLibraryInfo>();
context.setAttribute(Constants.JSP_TAGLIBRARY_CACHE, taglibs);
tagFileJarUrls = new ConcurrentHashMap<String, URL>();
context.setAttribute(Constants.JSP_TAGFILE_JAR_URLS_CACHE,
tagFileJarUrls);
// END GlassFish 750
} catch (MalformedURLException me) {
System.out.println("**" + me);
} catch (UnsupportedEncodingException ex) {
}
rctxt = new JspRuntimeContext(context, this);
jspConfig = new JspConfig(context);
tagPluginManager = new TagPluginManager(context);
}
开发者ID:eclipse,项目名称:packagedrone,代码行数:25,代码来源:JspC.java
示例4: initServletContext
import org.apache.jasper.servlet.JspCServletContext; //导入依赖的package包/类
protected void initServletContext() {
try {
context =new JspCServletContext
(new PrintWriter(System.out),
new URL("file:" + uriRoot.replace('\\','/') + '/'));
tldLocationsCache = TldLocationsCache.getInstance(context);
} catch (MalformedURLException me) {
System.out.println("**" + me);
}
if (isValidateTld()) {
context.setInitParameter(Constants.XML_VALIDATION_TLD_INIT_PARAM, "true");
}
if (isValidateXml()) {
context.setInitParameter(Constants.XML_VALIDATION_INIT_PARAM, "true");
}
context.setInitParameter(Constants.XML_BLOCK_EXTERNAL_INIT_PARAM,
String.valueOf(isBlockExternal()));
rctxt = new JspRuntimeContext(context, this);
jspConfig = new JspConfig(context);
tagPluginManager = new TagPluginManager(context);
}
开发者ID:deathspeeder,项目名称:class-guard,代码行数:23,代码来源:JspC.java
示例5: initServletContext
import org.apache.jasper.servlet.JspCServletContext; //导入依赖的package包/类
protected void initServletContext() {
try {
context =new JspCServletContext
(new PrintWriter(System.out),
new URL("file:" + uriRoot.replace('\\','/') + '/'));
tldLocationsCache = new TldLocationsCache(context, true);
} catch (MalformedURLException me) {
System.out.println("**" + me);
}
rctxt = new JspRuntimeContext(context, this);
jspConfig = new JspConfig(context);
tagPluginManager = new TagPluginManager(context);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:JspC.java
示例6: initTldScanner
import org.apache.jasper.servlet.JspCServletContext; //导入依赖的package包/类
protected void initTldScanner(JspCServletContext context, ClassLoader classLoader) {
if (scanner != null) {
return;
}
scanner = newTldScanner(context, true, isValidateTld(), isBlockExternal());
scanner.setClassLoader(classLoader);
}
开发者ID:nkasvosve,项目名称:beyondj,代码行数:9,代码来源:JspC.java
示例7: initServletContext
import org.apache.jasper.servlet.JspCServletContext; //导入依赖的package包/类
protected void initServletContext(ClassLoader classLoader)
throws IOException, JasperException {
// TODO: should we use the Ant Project's log?
PrintWriter log = new PrintWriter(System.out);
URL resourceBase = new File(uriRoot).getCanonicalFile().toURI().toURL();
context = new JspCServletContext(log, resourceBase, classLoader,
isValidateXml(), isBlockExternal());
if (isValidateTld()) {
context.setInitParameter(Constants.XML_VALIDATION_TLD_INIT_PARAM, "true");
}
initTldScanner(context, classLoader);
try {
scanner.scan();
} catch (SAXException e) {
throw new JasperException(e);
}
tldCache = new TldCache(context, scanner.getUriTldResourcePathMap(),
scanner.getTldResourcePathTaglibXmlMap());
context.setAttribute(TldCache.SERVLET_CONTEXT_ATTRIBUTE_NAME, tldCache);
rctxt = new JspRuntimeContext(context, this);
jspConfig = new JspConfig(context);
tagPluginManager = new TagPluginManager(context);
}
开发者ID:nkasvosve,项目名称:beyondj,代码行数:28,代码来源:JspC.java
示例8: initServletContext
import org.apache.jasper.servlet.JspCServletContext; //导入依赖的package包/类
protected void initServletContext() {
try {
context =new JspCServletContext
(new PrintWriter(System.out),
new URL("file:" + uriRoot.replace('\\','/') + '/'));
tldLocationsCache = TldLocationsCache.getInstance(context);
} catch (MalformedURLException me) {
System.out.println("**" + me);
}
rctxt = new JspRuntimeContext(context, this);
jspConfig = new JspConfig(context);
tagPluginManager = new TagPluginManager(context);
}
开发者ID:WhiteBearSolutions,项目名称:WBSAirback,代码行数:14,代码来源:JspC.java
示例9: newTldScanner
import org.apache.jasper.servlet.JspCServletContext; //导入依赖的package包/类
protected TldScanner newTldScanner(JspCServletContext context, boolean namespaceAware,
boolean validate, boolean blockExternal) {
return new TldScanner(context, namespaceAware, validate, blockExternal);
}
开发者ID:nkasvosve,项目名称:beyondj,代码行数:5,代码来源:JspC.java
注:本文中的org.apache.jasper.servlet.JspCServletContext类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论