Java Code Examples for javax.servlet.jsp.tagext.TagSupport#EVAL_PAGE

The following examples show how to use javax.servlet.jsp.tagext.TagSupport#EVAL_PAGE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JspExtensionPointTag.java    From openemm with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public int doEndTag() throws JspException {
	try {
		ExtensionSystem extensionSystem = ExtensionUtils.getExtensionSystem(pageContext.getServletContext());
		if (extensionSystem != null) {
			extensionSystem.invokeJspExtension(plugin, point, this.pageContext);
		} else {
			logger.warn("No JspPoint extension for plugin '" + plugin + "' defined");
		}
	} catch (Exception e) {
		logger.error( "Error handling JspPoint for plugin '" + plugin + "', point '" + point + "'", e);
	}

	return TagSupport.EVAL_PAGE;
}
 
Example 2
Source File: SpanTag.java    From uyuni with GNU General Public License v2.0 5 votes vote down vote up
/**
 * ${@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;
}
 
Example 3
Source File: HasUserOwnedPrivTag.java    From webcurator with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example 4
Source File: SpanTag.java    From spacewalk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * ${@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;
}
 
Example 5
Source File: NoPrivilegeTag.java    From webcurator with Apache License 2.0 4 votes vote down vote up
@Override
public int doEndTag() throws JspException {
    return TagSupport.EVAL_PAGE;
}
 
Example 6
Source File: HasAtLeastOnePrivTag.java    From webcurator with Apache License 2.0 4 votes vote down vote up
@Override
public int doEndTag() throws JspException {
    return TagSupport.EVAL_PAGE;
}
 
Example 7
Source File: HasAgencyOwnedPrivTag.java    From webcurator with Apache License 2.0 4 votes vote down vote up
@Override
public int doEndTag() throws JspException {
    return TagSupport.EVAL_PAGE;
}
 
Example 8
Source File: HasPrivilegeTag.java    From webcurator with Apache License 2.0 4 votes vote down vote up
@Override
public int doEndTag() throws JspException {
    return TagSupport.EVAL_PAGE;
}
 
Example 9
Source File: CustomListTypeTag.java    From webcurator with Apache License 2.0 4 votes vote down vote up
@Override
public int doEndTag() throws JspException {
	return TagSupport.EVAL_PAGE;
}
 
Example 10
Source File: TreeTag.java    From webcurator with Apache License 2.0 4 votes vote down vote up
public int doEndTag() throws JspException {
	return TagSupport.EVAL_PAGE;
}