usepagetei.java

来自「一个jsp网页布局框架」· Java 代码 · 共 34 行

JAVA
34
字号
/* * Title:        UsePageTEI * Description: * * This software is published under the terms of the OpenSymphony Software * License version 1.1, of which a copy has been included with this * distribution in the LICENSE.txt file. */package com.opensymphony.module.sitemesh.taglib.decorator;import javax.servlet.jsp.tagext.TagData;import javax.servlet.jsp.tagext.TagExtraInfo;import javax.servlet.jsp.tagext.VariableInfo;/** * TagExtraInfo implementation to expose Page object as variable. * * @author <a href="joe@truemesh.com">Joe Walnes</a> * @version $Revision: 1.1 $ * * @see UsePageTag * @see UseHTMLPageTEI */public class UsePageTEI extends TagExtraInfo {    protected String getType() {        return "com.opensymphony.module.sitemesh.Page";    }    public VariableInfo[] getVariableInfo(TagData data) {        String id = data.getAttributeString("id");        return new VariableInfo[] {new VariableInfo(id, getType(), true, VariableInfo.AT_END)};    }}

⌨️ 快捷键说明

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