当前位置: 首页>>代码示例>>Java>>正文


Java JspEngineInfo类代码示例

本文整理汇总了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();
  }
}
 
开发者ID:ontopia,项目名称:ontopia,代码行数:19,代码来源:JSPEngineWrapper.java

示例2: getEngineInfo

import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
@Override
public JspEngineInfo getEngineInfo() {
    return new JspEngineInfo() {
        @Override
        public String getSpecificationVersion() {
            return SPEC_VERSION;
        }
    };
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:10,代码来源:JspFactoryImpl.java

示例3: getEngineInfo

import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
public JspEngineInfo getEngineInfo() {
    return new JspEngineInfo() {
        public String getSpecificationVersion() {
            return SPEC_VERSION;
        }
    };
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:8,代码来源:JspFactoryImpl.java

示例4: getEngineInfo

import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
@Override
public JspEngineInfo getEngineInfo() {
	return new JspEngineInfo() {
		@Override
		public String getSpecificationVersion() {
			return SPEC_VERSION;
		}
	};
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:10,代码来源:JspFactoryImpl.java

示例5: getEngineInfo

import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
public JspEngineInfo getEngineInfo() {
      return new JspEngineInfo() {
public String getSpecificationVersion() {
    return SPEC_VERSION;
}
   };
  }
 
开发者ID:eclipse,项目名称:packagedrone,代码行数:8,代码来源:JspFactoryImpl.java

示例6: getEngineInfo

import javax.servlet.jsp.JspEngineInfo; //导入依赖的package包/类
@Override
public JspEngineInfo getEngineInfo() {
	return info;
}
 
开发者ID:lucee,项目名称:Lucee4,代码行数:5,代码来源:CFMLFactoryImpl.java

示例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();
 
开发者ID:balancebeam,项目名称:puzzle,代码行数:10,代码来源:JspFactory.java


注:本文中的javax.servlet.jsp.JspEngineInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。