containertweaks.java
来自「OS(OpenSymphony)的SiteMesh是一个用来在JSP中实现页面布」· Java 代码 · 共 30 行
JAVA
30 行
package com.opensymphony.sitemesh.webapp;import com.opensymphony.module.sitemesh.util.Container;/** * Provides details of which tweaks should be used in SiteMesh - necessary because containers behave subtly different. * * @author Joe Walnes * @since SiteMesh 3 */public class ContainerTweaks { // TODO: Externalize these into a config file (optional of course!), allowing users to change them at runtime if needed. private final int container = Container.get(); public boolean shouldAutoCreateSession() { return false;// return container == Container.TOMCAT; - this is removed due to SIM-151. } public boolean shouldLogUnhandledExceptions() { return container == Container.TOMCAT; } public boolean shouldIgnoreIllegalStateExceptionOnErrorPage() { return container == Container.WEBLOGIC; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?