當前位置: 首頁>>代碼示例>>Java>>正文


Java Tag.EVAL_PAGE屬性代碼示例

本文整理匯總了Java中javax.servlet.jsp.tagext.Tag.EVAL_PAGE屬性的典型用法代碼示例。如果您正苦於以下問題:Java Tag.EVAL_PAGE屬性的具體用法?Java Tag.EVAL_PAGE怎麽用?Java Tag.EVAL_PAGE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在javax.servlet.jsp.tagext.Tag的用法示例。


在下文中一共展示了Tag.EVAL_PAGE屬性的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: doEndTag

/**
 * Does two things:
 * <ul>
 *      <li>Stops the page if the corresponding attribute has been set</li>
 *      <li>Prints a message another tag encloses this one.</li>
 * </ul>
 */
public int doEndTag() throws JspTagException
{
    //get the parent if any
    Tag parent = this.getParent();

    if (parent != null) {
        try {
            JspWriter out = this.pageContext.getOut();
            out.println("This tag has a parent. <BR>");

        } catch (IOException e) {
            throw new JspTagException(e.getMessage());
        }
    }

    if (this.stopPage) {

        return Tag.SKIP_PAGE;
    }

    return Tag.EVAL_PAGE;
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:29,代碼來源:SampleTag.java

示例2: doEndTag

@Override
public int doEndTag() throws JspException {
	JspWriter out = this.pageContext.getOut();
	try {
		if (!emptyBody()) {
			doBeforeEnd(out);
			out.write("</" + getHtmlTag() + ">");
		}
		doAfterEnd(out);
	} catch (Exception e) {
		e.printStackTrace();
	}
	return Tag.EVAL_PAGE;
}
 
開發者ID:KayuraTeam,項目名稱:kayura-tags,代碼行數:14,代碼來源:TagRender.java

示例3: doEndTag

@Override
public int doEndTag() throws JspException {

	JspWriter out = this.pageContext.getOut();
	try {
		if (getFull()) {
			out.write("</div>");
		}
		out.write("</body>\n");
		doAfterEnd(out);
	} catch (Exception e) {
		e.printStackTrace();
	}
	return Tag.EVAL_PAGE;
}
 
開發者ID:KayuraTeam,項目名稱:kayura-tags,代碼行數:15,代碼來源:BodyTag.java

示例4: doEndTag

@Override
public int doEndTag() throws JspException {

	JspWriter out = this.pageContext.getOut();
	try {
		out.write("</div></div>");
	} catch (Exception e) {
		logger.error(e.getMessage(), e);
	}
	return Tag.EVAL_PAGE;
}
 
開發者ID:KayuraTeam,項目名稱:kayura-tags,代碼行數:11,代碼來源:SubMenuTag.java

示例5: doEndTag

@Override
public int doEndTag() throws JspException {

	String overriedContent = getOverriedContent();
	if (overriedContent != null && overriedContent.trim().length() > 0) {

		try {
			pageContext.getOut().write(overriedContent);
			pageContext.removeAttribute(TAG_NAME + name);
		} catch (IOException e) {
			throw new JspException("write override Content throw IOException, section name:" + name, e);
		}
	}
	return Tag.EVAL_PAGE;
}
 
開發者ID:KayuraTeam,項目名稱:kayura-tags,代碼行數:15,代碼來源:RenderSectionTag.java

示例6: doEndTag

@Override
public int doEndTag() throws JspException {

	if (!isOverrided()) {
		BodyContent b = getBodyContent();
		if (b != null) {
			String content = b.getString();
			if (!TagUtils.isEmpty(content)) {
				pageContext.setAttribute(TAG_NAME + name, content);
			}
		}
	}
	return Tag.EVAL_PAGE;
}
 
開發者ID:KayuraTeam,項目名稱:kayura-tags,代碼行數:14,代碼來源:SectionTag.java

示例7: doEndTag

@Override
   public int doEndTag() {
return Tag.EVAL_PAGE;
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:4,代碼來源:HelpTag.java

示例8: doEndTag

@Override
public int doEndTag() throws JspException {
	return Tag.EVAL_PAGE;
}
 
開發者ID:biblelamp,項目名稱:JavaEE,代碼行數:4,代碼來源:GreetingTag.java


注:本文中的javax.servlet.jsp.tagext.Tag.EVAL_PAGE屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。