本文整理汇总了Java中javax.servlet.jsp.tagext.BodyTag.SKIP_BODY属性的典型用法代码示例。如果您正苦于以下问题:Java BodyTag.SKIP_BODY属性的具体用法?Java BodyTag.SKIP_BODY怎么用?Java BodyTag.SKIP_BODY使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.servlet.jsp.tagext.BodyTag
的用法示例。
在下文中一共展示了BodyTag.SKIP_BODY属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doStartTag
/**
* Create and expose the current RequestContext. Delegates to
* {@link #doStartTagInternal()} for actual work.
*
* @see #REQUEST_CONTEXT_PAGE_ATTRIBUTE
* @see org.springframework.web.servlet.support.JspAwareRequestContext
*/
public final int doStartTag()
throws JspException
{
resolvedArtifactSourceIterator = getResolvedArtifactSourcesIterator();
if(resolvedArtifactSourceIterator == null || !resolvedArtifactSourceIterator.hasNext())
{
currentResolvedArtifactSource = null;
if(getEmptyResultMessage() != null)
try{pageContext.getOut().write(getEmptyResultMessage());}
catch(IOException ioX){logger.error("Unable to write empty result set message.");}
return BodyTag.SKIP_BODY;
}
else
{
currentResolvedArtifactSource = resolvedArtifactSourceIterator.next();
return BodyTag.EVAL_BODY_INCLUDE;
}
}
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:26,代码来源:AbstractResolvedArtifactSourceCollectionTag.java
示例2: doStartTag
/**
* Create and expose the current RequestContext. Delegates to
* {@link #doStartTagInternal()} for actual work.
*
* @see #REQUEST_CONTEXT_PAGE_ATTRIBUTE
* @see org.springframework.web.servlet.support.JspAwareRequestContext
*/
public final int doStartTag()
throws JspException
{
urlIterator = getUrlIterator();
if(urlIterator.hasNext())
{
currentUrl = urlIterator.next();
return BodyTag.EVAL_BODY_INCLUDE;
}
else
{
if(getEmptyResultMessage() != null)
try{pageContext.getOut().write(getEmptyResultMessage());}
catch(IOException ioX){logger.error("Unable to write empty result set message.");}
currentUrl = null;
return BodyTag.SKIP_BODY;
}
}
示例3: doStartTag
@Override
public int doStartTag()
throws JspException
{
index = 0;
return
getListValues() == null ? BodyTag.SKIP_BODY :
getListValues().length < 1 ? BodyTag.SKIP_BODY :
BodyTag.EVAL_BODY_INCLUDE;
}
示例4: doAfterBody
@Override
public int doAfterBody()
throws JspException
{
++index;
return index < getListValues().length ?
BodyTag.EVAL_BODY_AGAIN :
BodyTag.SKIP_BODY;
}
示例5: doStartTag
@Override
public int doStartTag()
throws JspException
{
file = getFile();
return file == null ? BodyTag.SKIP_BODY : BodyTag.EVAL_BODY_INCLUDE;
}
示例6: doStartTag
@Override
public int doStartTag()
throws JspException
{
resolvedArtifactSource = getResolvedArtifactSource();
return resolvedArtifactSource == null ? BodyTag.SKIP_BODY : BodyTag.EVAL_BODY_INCLUDE;
}
示例7: doStartTag
@Override
public int doStartTag()
throws JspException
{
artifactSource = getArtifactSource();
return artifactSource == null ? BodyTag.SKIP_BODY : BodyTag.EVAL_BODY_INCLUDE;
}
示例8: doStartTag
@Override
public int doStartTag()
throws JspException
{
site = getSite();
return site == null ? BodyTag.SKIP_BODY : BodyTag.EVAL_BODY_INCLUDE;
}
示例9: doAfterBody
@Override
public int doAfterBody()
throws JspException
{
Iterator<T> boIterator = getBusinessObjectCollectionIterator();
if( boIterator != null && boIterator.hasNext() )
{
currentBusinessObject = boIterator.next();
return IterationTag.EVAL_BODY_AGAIN;
}
currentBusinessObject = null;
return BodyTag.SKIP_BODY;
}
示例10: doStartTag
/**
* @see javax.servlet.jsp.tagext.TagSupport#doStartTag()
*/
@Override
public int doStartTag()
throws JspException
{
return getTransactionLogStatistics() == null ? BodyTag.SKIP_BODY : BodyTag.EVAL_BODY_INCLUDE;
}
示例11: doAfterBody
/**
*
* @see javax.servlet.jsp.tagext.BodyTagSupport#doAfterBody()
*/
@Override
public int doAfterBody()
throws JspException
{
return BodyTag.SKIP_BODY;
}
示例12: doStartTag
@Override
public int doStartTag() throws JspException
{
displayMap = getDisplayMap();
if(displayMap != null && !displayMap.isEmpty())
{
keySetIterator = displayMap.keySet().iterator();
return setIterator() ? BodyTag.EVAL_BODY_INCLUDE : BodyTag.SKIP_BODY;
}
return BodyTag.SKIP_BODY;
}
示例13: doStartTag
/**
* locates the bundle and tests whether the key has a value
*/
public int doStartTag() throws JspException
{
int returnValue;
// evaluate the body if a value was found, otherwise skip it
if ( this.shouldEvaluate() ) {
returnValue = BodyTag.EVAL_BODY_TAG;
} else {
returnValue = BodyTag.SKIP_BODY;
}
return returnValue;
}
示例14: doStartTag
public int doStartTag() throws JspException {
if (snip == null) {
return BodyTag.SKIP_BODY;
}
JspWriter out = pageContext.getOut();
Links snipLinks = snip.getAccess().getSnipLinks();
SnipLinks.appendTo(out, snip.getAccess().getSnipLinks(), this.width, this.start, this.end);
return super.doStartTag();
}
示例15: doStartTag
public int doStartTag() throws JspException {
if (snip == null) {
return BodyTag.SKIP_BODY;
}
JspWriter out = pageContext.getOut();
// Links backLinks = snip.getAccess().getBackLinks();
BackLinks.appendTo(out, snip.getAccess().getBackLinks(), this.count);
return super.doStartTag();
}