本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例7: doEndTag
@Override
public int doEndTag() {
return Tag.EVAL_PAGE;
}
示例8: doEndTag
@Override
public int doEndTag() throws JspException {
return Tag.EVAL_PAGE;
}