当前位置: 首页>>代码示例>>Java>>正文


Java TagInfo.BODY_CONTENT_SCRIPTLESS属性代码示例

本文整理汇总了Java中javax.servlet.jsp.tagext.TagInfo.BODY_CONTENT_SCRIPTLESS属性的典型用法代码示例。如果您正苦于以下问题:Java TagInfo.BODY_CONTENT_SCRIPTLESS属性的具体用法?Java TagInfo.BODY_CONTENT_SCRIPTLESS怎么用?Java TagInfo.BODY_CONTENT_SCRIPTLESS使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在javax.servlet.jsp.tagext.TagInfo的用法示例。


在下文中一共展示了TagInfo.BODY_CONTENT_SCRIPTLESS属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getTagInfo

public TagInfo getTagInfo() throws JasperException {

            if (name == null) {
                // XXX Get it from tag file name
            }

            if (bodycontent == null) {
                bodycontent = TagInfo.BODY_CONTENT_SCRIPTLESS;
            }

            String tagClassName = JspUtil.getTagHandlerClassName(
                    path, tagLibInfo.getReliableURN(), err);

            TagVariableInfo[] tagVariableInfos = new TagVariableInfo[variableVector
                    .size()];
            variableVector.copyInto(tagVariableInfos);

            TagAttributeInfo[] tagAttributeInfo = new TagAttributeInfo[attributeVector
                    .size()];
            attributeVector.copyInto(tagAttributeInfo);

            return new JasperTagInfo(name, tagClassName, bodycontent,
                    description, tagLibInfo, tei, tagAttributeInfo,
                    displayName, smallIcon, largeIcon, tagVariableInfos,
                    dynamicAttrsMapName);
        }
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:26,代码来源:TagFileProcessor.java

示例2: getTagInfo

public TagInfo getTagInfo() throws JasperException {

			if (name == null) {
				// XXX Get it from tag file name
			}

			if (bodycontent == null) {
				bodycontent = TagInfo.BODY_CONTENT_SCRIPTLESS;
			}

			String tagClassName = JspUtil.getTagHandlerClassName(path, tagLibInfo.getReliableURN(), err);

			TagVariableInfo[] tagVariableInfos = new TagVariableInfo[variableVector.size()];
			variableVector.copyInto(tagVariableInfos);

			TagAttributeInfo[] tagAttributeInfo = new TagAttributeInfo[attributeVector.size()];
			attributeVector.copyInto(tagAttributeInfo);

			return new JasperTagInfo(name, tagClassName, bodycontent, description, tagLibInfo, tei, tagAttributeInfo,
					displayName, smallIcon, largeIcon, tagVariableInfos, dynamicAttrsMapName);
		}
 
开发者ID:how2j,项目名称:lazycat,代码行数:21,代码来源:TagFileProcessor.java

示例3: getAttributeBodyType

/**
 * Determine the body type of <jsp:attribute> from the enclosing node
 */
private String getAttributeBodyType(Node n, String name) {

    if (n instanceof Node.CustomTag) {
        TagInfo tagInfo = ((Node.CustomTag) n).getTagInfo();
        TagAttributeInfo[] tldAttrs = tagInfo.getAttributes();
        for (int i = 0; i < tldAttrs.length; i++) {
            if (name.equals(tldAttrs[i].getName())) {
                if (tldAttrs[i].isFragment()) {
                    return TagInfo.BODY_CONTENT_SCRIPTLESS;
                }
                if (tldAttrs[i].canBeRequestTime()) {
                    return TagInfo.BODY_CONTENT_JSP;
                }
            }
        }
        if (tagInfo.hasDynamicAttributes()) {
            return TagInfo.BODY_CONTENT_JSP;
        }
    } else if (n instanceof Node.IncludeAction) {
        if ("page".equals(name)) {
            return TagInfo.BODY_CONTENT_JSP;
        }
    } else if (n instanceof Node.ForwardAction) {
        if ("page".equals(name)) {
            return TagInfo.BODY_CONTENT_JSP;
        }
    } else if (n instanceof Node.SetProperty) {
        if ("value".equals(name)) {
            return TagInfo.BODY_CONTENT_JSP;
        }
    } else if (n instanceof Node.UseBean) {
        if ("beanName".equals(name)) {
            return TagInfo.BODY_CONTENT_JSP;
        }
    } else if (n instanceof Node.PlugIn) {
        if ("width".equals(name) || "height".equals(name)) {
            return TagInfo.BODY_CONTENT_JSP;
        }
    } else if (n instanceof Node.ParamAction) {
        if ("value".equals(name)) {
            return TagInfo.BODY_CONTENT_JSP;
        }
    } else if (n instanceof Node.JspElement) {
        return TagInfo.BODY_CONTENT_JSP;
    }

    return JAVAX_BODY_CONTENT_TEMPLATE_TEXT;
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:51,代码来源:Parser.java

示例4: getAttributeBodyType

/**
 * Determine the body type of <jsp:attribute> from the enclosing node
 */
private String getAttributeBodyType(Node n, String name) {

	if (n instanceof Node.CustomTag) {
		TagInfo tagInfo = ((Node.CustomTag) n).getTagInfo();
		TagAttributeInfo[] tldAttrs = tagInfo.getAttributes();
		for (int i = 0; i < tldAttrs.length; i++) {
			if (name.equals(tldAttrs[i].getName())) {
				if (tldAttrs[i].isFragment()) {
					return TagInfo.BODY_CONTENT_SCRIPTLESS;
				}
				if (tldAttrs[i].canBeRequestTime()) {
					return TagInfo.BODY_CONTENT_JSP;
				}
			}
		}
		if (tagInfo.hasDynamicAttributes()) {
			return TagInfo.BODY_CONTENT_JSP;
		}
	} else if (n instanceof Node.IncludeAction) {
		if ("page".equals(name)) {
			return TagInfo.BODY_CONTENT_JSP;
		}
	} else if (n instanceof Node.ForwardAction) {
		if ("page".equals(name)) {
			return TagInfo.BODY_CONTENT_JSP;
		}
	} else if (n instanceof Node.SetProperty) {
		if ("value".equals(name)) {
			return TagInfo.BODY_CONTENT_JSP;
		}
	} else if (n instanceof Node.UseBean) {
		if ("beanName".equals(name)) {
			return TagInfo.BODY_CONTENT_JSP;
		}
	} else if (n instanceof Node.PlugIn) {
		if ("width".equals(name) || "height".equals(name)) {
			return TagInfo.BODY_CONTENT_JSP;
		}
	} else if (n instanceof Node.ParamAction) {
		if ("value".equals(name)) {
			return TagInfo.BODY_CONTENT_JSP;
		}
	} else if (n instanceof Node.JspElement) {
		return TagInfo.BODY_CONTENT_JSP;
	}

	return JAVAX_BODY_CONTENT_TEMPLATE_TEXT;
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:51,代码来源:Parser.java


注:本文中的javax.servlet.jsp.tagext.TagInfo.BODY_CONTENT_SCRIPTLESS属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。