本文整理匯總了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;
}