containertweaks.java
来自「一个jsp网页布局框架」· Java 代码 · 共 29 行
JAVA
29 行
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 container == Container.TOMCAT; } public boolean shouldLogUnhandledExceptions() { return container == Container.TOMCAT; } public boolean shouldIgnoreIllegalStateExceptionOnErrorPage() { return container == Container.WEBLOGIC; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?