本文整理汇总了Java中javax.servlet.jsp.JspEngineInfo类的典型用法代码示例。如果您正苦于以下问题:Java JspEngineInfo类的具体用法?Java JspEngineInfo怎么用?Java JspEngineInfo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JspEngineInfo类属于javax.servlet.jsp包,在下文中一共展示了JspEngineInfo类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getWrapper
import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
private static WrapperIF getWrapper() {
if (wrapper != null)
return wrapper;
if (JspFactory.getDefaultFactory() == null)
// ontojsp can't set the default factory, since ontojsp needs to
// be able to run inside app servers, which will set the default.
// in the test suite there will therefore be no default factory.
return new JSP12Wrapper();
JspEngineInfo engine = JspFactory.getDefaultFactory().getEngineInfo();
String version = engine.getSpecificationVersion();
switch (version) {
case "2.0": return new JSP20Wrapper();
case "1.2": return new JSP12Wrapper();
default: return new JSP11Wrapper();
}
}
示例2: getEngineInfo
import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
@Override
public JspEngineInfo getEngineInfo() {
return new JspEngineInfo() {
@Override
public String getSpecificationVersion() {
return SPEC_VERSION;
}
};
}
示例3: getEngineInfo
import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
public JspEngineInfo getEngineInfo() {
return new JspEngineInfo() {
public String getSpecificationVersion() {
return SPEC_VERSION;
}
};
}
示例4: getEngineInfo
import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
@Override
public JspEngineInfo getEngineInfo() {
return new JspEngineInfo() {
@Override
public String getSpecificationVersion() {
return SPEC_VERSION;
}
};
}
示例5: getEngineInfo
import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
public JspEngineInfo getEngineInfo() {
return new JspEngineInfo() {
public String getSpecificationVersion() {
return SPEC_VERSION;
}
};
}
示例6: getEngineInfo
import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
@Override
public JspEngineInfo getEngineInfo() {
return info;
}
示例7: getEngineInfo
import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
/**
* <p>
* called to get implementation-specific information on the current JSP engine.
* </p>
*
* @return a JspEngineInfo object describing the current JSP engine
*/
public abstract JspEngineInfo getEngineInfo();