当前位置: 首页>>代码示例>>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;未经允许,请勿转载。