⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 containertweaks.java

📁 OS(OpenSymphony)的SiteMesh是一个用来在JSP中实现页面布局和装饰(layout and decoration)的框架组件
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -