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


Java TagSupport.EVAL_PAGE屬性代碼示例

本文整理匯總了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));
   }
}
 
開發者ID:nyla-solutions,項目名稱:nyla,代碼行數:19,代碼來源:SectionContainerTag.java

示例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;
}
 
開發者ID:DIA-NZ,項目名稱:webcurator,代碼行數:8,代碼來源:HasUserOwnedPrivTag.java

示例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;
}
 
開發者ID:spacewalkproject,項目名稱:spacewalk,代碼行數:14,代碼來源:SpanTag.java

示例4: doEndTag

@Override
public int doEndTag() throws JspException {
    return TagSupport.EVAL_PAGE;
}
 
開發者ID:DIA-NZ,項目名稱:webcurator,代碼行數:4,代碼來源:NoPrivilegeTag.java

示例5: doEndTag

@Override
public int doEndTag() throws JspException {
	return TagSupport.EVAL_PAGE;
}
 
開發者ID:DIA-NZ,項目名稱:webcurator,代碼行數:4,代碼來源:CustomListTypeTag.java

示例6: doEndTag

public int doEndTag() throws JspException {
	return TagSupport.EVAL_PAGE;
}
 
開發者ID:DIA-NZ,項目名稱:webcurator,代碼行數:3,代碼來源:TreeTag.java

示例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;
  }
 
開發者ID:steeleforge,項目名稱:aemin,代碼行數:44,代碼來源:ClosureIncludeClientLibraryTag.java


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