javax.servlet.jsp.JspEngineInfo Java Examples

The following examples show how to use javax.servlet.jsp.JspEngineInfo. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JSPEngineWrapper.java    From ontopia with Apache License 2.0 7 votes vote down vote up
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();
  }
}
 
Example #2
Source File: JspFactoryImpl.java    From Tomcat8-Source-Read with MIT License 5 votes vote down vote up
@Override
public JspEngineInfo getEngineInfo() {
    return new JspEngineInfo() {
        @Override
        public String getSpecificationVersion() {
            return SPEC_VERSION;
        }
    };
}
 
Example #3
Source File: JspFactoryImpl.java    From Tomcat7.0.67 with Apache License 2.0 5 votes vote down vote up
@Override
public JspEngineInfo getEngineInfo() {
    return new JspEngineInfo() {
        @Override
        public String getSpecificationVersion() {
            return SPEC_VERSION;
        }
    };
}
 
Example #4
Source File: JspFactoryImpl.java    From tomcatsrc with Apache License 2.0 5 votes vote down vote up
@Override
public JspEngineInfo getEngineInfo() {
    return new JspEngineInfo() {
        @Override
        public String getSpecificationVersion() {
            return SPEC_VERSION;
        }
    };
}
 
Example #5
Source File: JspFactoryImpl.java    From packagedrone with Eclipse Public License 1.0 5 votes vote down vote up
public JspEngineInfo getEngineInfo() {
      return new JspEngineInfo() {
public String getSpecificationVersion() {
    return SPEC_VERSION;
}
   };
  }