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

📄 propertytag.java

📁 webwork source
💻 JAVA
字号:
/* * WebWork, Web Application Framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork.view.taglib;/** *  Access the value of a named property. By default (implicitly), *  this tag will escape its contents if it does *not* have a body. *  If it does have a body, the tag will not escape the contents. *  You can explicitly tell the tag to escape or not. *  Quoted text that is escaped will have its quotes stripped off. * * @author Rickard 謆erg (rickard@dreambean.com) * @author Matt Baldree (matt@smallleap.com) * @version $Revision: 1.19 $ */public class PropertyTag extends BasicPropertyTag{    /**     * The property tag should escape IF the escape value has been set to true, OR     * if the tag has a body and there is no set escape value.     *     * CHANGE THIS METHOD ON PAIN OF DEATH -mike :)     *     * @see BasicPropertyTag#shouldEscape()     */    protected boolean shouldEscape()    {        if (hadBody && escape == null)        {            return false;        }        if (!hadBody && escape == null)        {            return true;        }        return escape.booleanValue();    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -