本文整理汇总了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;
}