本文整理汇总了Java中javax.servlet.jsp.tagext.TagSupport.EVAL_PAGE属性的典型用法代码示例。如果您正苦于以下问题:Java TagSupport.EVAL_PAGE属性的具体用法?Java TagSupport.EVAL_PAGE怎么用?Java TagSupport.EVAL_PAGE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.servlet.jsp.tagext.TagSupport
的用法示例。
在下文中一共展示了TagSupport.EVAL_PAGE属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doEndTag
/**
*
* @see javax.servlet.jsp.tagext.TagSupport#doEndTag()
*/
public int doEndTag() throws JspException
{
try
{
section = null;
pageContext.removeAttribute("counter");
pageContext.removeAttribute("sectionCounter");
pageContext.getOut().write("</table>");
return TagSupport.EVAL_PAGE;
}
catch(Exception e)
{
throw new JspException(Debugger.stackTrace(e));
}
}
示例2: doEndTag
@Override
public int doEndTag() throws JspException {
// release the object (usually its a target which references tis) from the tag to prevent a memory leak (Tags are pooled)
if (ownedObject != null)
ownedObject = null;
return TagSupport.EVAL_PAGE;
}
示例3: doEndTag
/**
* ${@inheritDoc}
*/
public int doEndTag() throws JspException {
ListCommand cmd = ListTagUtil.getCurrentCommand(this, pageContext);
ListTag parent = (ListTag) TagSupport.findAncestorWithClass(this, ListTag.class);
if (cmd.equals(ListCommand.TBL_ADDONS) && role.equals("header")) {
renderHeader(parent);
}
else if (cmd.equals(ListCommand.BEFORE_RENDER) && role.equals("footer")) {
renderFooter(parent);
}
return TagSupport.EVAL_PAGE;
}
示例4: doEndTag
@Override
public int doEndTag() throws JspException {
return TagSupport.EVAL_PAGE;
}
示例5: doEndTag
@Override
public int doEndTag() throws JspException {
return TagSupport.EVAL_PAGE;
}
示例6: doEndTag
public int doEndTag() throws JspException {
return TagSupport.EVAL_PAGE;
}
示例7: doEndTag
public int doEndTag() throws JspException {
SlingHttpServletRequest request = JspUtil.getSlingRequest(pageContext);
HtmlLibraryManager libraryManager = JspUtil.getService(pageContext, HtmlLibraryManager.class);
try {
if (null != libraryManager) {
JspWriter out = pageContext.getOut();
StringWriter writerBuffer = new StringWriter();
if (StringUtils.isNotBlank(getCategories())) {
// categories
libraryManager.writeIncludes(request, writerBuffer,
csvToArray(getCategories()));
} else if (StringUtils.isNotBlank(getTheme())) {
// theme
libraryManager.writeThemeInclude(request, writerBuffer,
csvToArray(getTheme()));
} else if (StringUtils.isNotBlank(getJs())) {
if (isThemed()) {
// themed js
libraryManager.writeJsInclude(request, writerBuffer, isThemed(), getJs());
} else {
// theme default js
libraryManager.writeJsInclude(request, writerBuffer, getJs());
}
} else if (StringUtils.isNotBlank(getCss())) {
if (isThemed()) {
// themed css
libraryManager.writeCssInclude(request, writerBuffer, isThemed(), getCss());
} else {
// theme default css
libraryManager.writeCssInclude(request, writerBuffer, getCss());
}
}
// simple replacement of ".min.js" to ".aemin.js"
String markup = writerBuffer.toString();
out.write(StringUtils.replace(markup, ".min.js", ".aemin.js"));
} else {
taglog.debug("aemin Library Manager inaccessible");
}
} catch (IOException ioe) {
taglog.debug(ioe.getMessage());
}
return TagSupport.EVAL_PAGE;
}