本文整理了Java中javax.servlet.jsp.tagext.Tag.doEndTag()
方法的一些代码示例,展示了Tag.doEndTag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tag.doEndTag()
方法的具体详情如下:
包路径:javax.servlet.jsp.tagext.Tag
类名称:Tag
方法名:doEndTag
[英]Process the end tag for this instance. This method is invoked by the JSP page implementation object on all Tag handlers.
This method will be called after returning from doStartTag. The body of the action may or may not have been evaluated, depending on the return value of doStartTag.
If this method returns EVAL_PAGE, the rest of the page continues to be evaluated. If this method returns SKIP_PAGE, the rest of the page is not evaluated, the request is completed, and the doEndTag() methods of enclosing tags are not invoked. If this request was forwarded or included from another page (or Servlet), only the current page evaluation is stopped.
The JSP container will resynchronize the values of any AT_BEGIN and AT_END variables (defined by the associated TagExtraInfo or TLD) after the invocation of doEndTag().
[中]处理此实例的结束标记。此方法由所有标记处理程序上的JSP页面实现对象调用。
从doStartTag返回后将调用此方法。根据doStartTag的返回值,动作主体可能已被评估,也可能未被评估。
如果此方法返回EVAL_页面,则继续计算页面的其余部分。如果此方法返回SKIP_PAGE,则不计算页面的其余部分,请求完成,并且不调用封闭标记的doEndTag()方法。如果此请求是从另一个页面(或Servlet)转发或包含的,则仅停止当前页面的评估。
调用doEndTag()后,JSP容器将重新同步任何AT_BEGIN和AT_END变量(由关联的TagExtraInfo或TLD定义)的值。
代码示例来源:origin: org.freemarker/freemarker
private void endEvaluation() throws JspException {
if (needPop) {
pageContext.popWriter();
needPop = false;
}
if (tag.doEndTag() == Tag.SKIP_PAGE) {
LOG.warn("Tag.SKIP_PAGE was ignored from a " + tag.getClass().getName() + " tag.");
}
}
代码示例来源:origin: com.mockrunner/mockrunner-jdk1.4-j2ee1.3
/**
* Delegates to wrapped tag.
*/
public int doEndTag() throws JspException
{
return tag.doEndTag();
}
代码示例来源:origin: com.mockrunner/mockrunner-jdk1.3-j2ee1.3
/**
* Delegates to wrapped tag.
*/
public int doEndTag() throws JspException
{
return tag.doEndTag();
}
代码示例来源:origin: com.mockrunner/mockrunner-tag
/**
* Delegates to wrapped tag.
*/
public int doEndTag() throws JspException
{
return tag.doEndTag();
}
代码示例来源:origin: mockobjects/mockobjects-jdk1.4-j2ee1.3
/**
* Assert that the return value of doEndTag is equal to an expectedValue
* @param expectedValue value to check against doEndTag
*/
public void assertDoEndTag(int expectedValue) throws JspException {
Assert.assertEquals("doEndTag returned unexpected value" + getReturnValueName(expectedValue),
expectedValue, testSubject.doEndTag());
}
}
代码示例来源:origin: com.pojosontheweb/ttt-stripes
@Override
protected void doRender(TttWriter tw) throws Exception {
// try {
tag.doStartTag();
tag.doEndTag();
// } finally {
// tag.release();
// }
}
}
代码示例来源:origin: org.freemarker/com.springsource.freemarker
private void endEvaluation() throws JspException {
if(needPop) {
pageContext.popWriter();
needPop = false;
}
if(tag.doEndTag() == Tag.SKIP_PAGE) {
logger.warn("Tag.SKIP_PAGE was ignored from a " + tag.getClass().getName() + " tag.");
}
}
代码示例来源:origin: org.freemarker/freemarker-gae
private void endEvaluation() throws JspException {
if (needPop) {
pageContext.popWriter();
needPop = false;
}
if (tag.doEndTag() == Tag.SKIP_PAGE) {
LOG.warn("Tag.SKIP_PAGE was ignored from a " + tag.getClass().getName() + " tag.");
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
private void endEvaluation() throws JspException {
if (needPop) {
pageContext.popWriter();
needPop = false;
}
if (tag.doEndTag() == Tag.SKIP_PAGE) {
LOG.warn("Tag.SKIP_PAGE was ignored from a " + tag.getClass().getName() + " tag.");
}
}
代码示例来源:origin: com.mockrunner/mockrunner-jdk1.4-j2ee1.3
/**
* Calls the <code>doEndTag</code> method of the current tag.
* @return the result of <code>doEndTag</code>
* @throws <code>RuntimeException</code>, if the tag
* is a simple tag
*/
public int doEndTag()
{
if(null == tag)
{
throw new RuntimeException("No current tag set");
}
/*if(isSimpleTag())
{
throw new RuntimeException("Cannot call doEndTag() on simple tags");
}*/
try
{
return ((Tag)tag).doEndTag();
}
catch(JspException exc)
{
throw new NestedApplicationException(exc);
}
}
代码示例来源:origin: com.mockrunner/mockrunner-jdk1.3-j2ee1.3
/**
* Calls the <code>doEndTag</code> method of the current tag.
* @return the result of <code>doEndTag</code>
* @throws <code>RuntimeException</code>, if the tag
* is a simple tag
*/
public int doEndTag()
{
if(null == tag)
{
throw new RuntimeException("No current tag set");
}
/*if(isSimpleTag())
{
throw new RuntimeException("Cannot call doEndTag() on simple tags");
}*/
try
{
return ((Tag)tag).doEndTag();
}
catch(JspException exc)
{
throw new NestedApplicationException(exc);
}
}
代码示例来源:origin: org.seasar.teeda/teeda-extension
protected void processTag(final PageContext pageContext, final Tag tag)
throws JspException {
if (Tag.SKIP_BODY != tag.doStartTag()) {
processChildren(pageContext, tag);
tag.doEndTag();
}
}
代码示例来源:origin: com.mockrunner/mockrunner-tag
/**
* Calls the <code>doEndTag</code> method of the current tag.
* @return the result of <code>doEndTag</code>
* @throws <code>RuntimeException</code>, if the tag
* is a simple tag
*/
public int doEndTag()
{
if(null == tag)
{
throw new RuntimeException("No current tag set");
}
if(isSimpleTag())
{
throw new RuntimeException("Cannot call doEndTag() on simple tags");
}
try
{
return ((Tag)tag).doEndTag();
}
catch(JspException exc)
{
throw new NestedApplicationException(exc);
}
}
代码示例来源:origin: org.seasar.mayaa/mayaa
public ProcessStatus doEndProcess() {
Tag customTag = getLoadedTag();
try {
int ret = customTag.doEndTag();
return getProcessStatus(ret, true);
} catch (JspException e) {
throw createJspRuntimeException(
getOriginalNode(), getInjectedNode(), e);
} finally {
if (!canCatch()) {
releaseLoadedTag();
popNestedVariables();
}
}
}
代码示例来源:origin: org.apache.velocity.tools/velocity-tools-view-jsp
tag.doEndTag();
代码示例来源:origin: com.liferay.faces/liferay-faces-portal
tag.doEndTag();
代码示例来源:origin: org.metawidget.modules/metawidget-all
tag.doEndTag();
} finally {
tag.release();
代码示例来源:origin: com.mockrunner/mockrunner-jdk1.3-j2ee1.3
returnValue = tag.doEndTag();
代码示例来源:origin: com.mockrunner/mockrunner-jdk1.4-j2ee1.3
returnValue = tag.doEndTag();
代码示例来源:origin: com.mockrunner/mockrunner-tag
returnValue = tag.doEndTag();
内容来源于网络,如有侵权,请联系作者删除!