本文整理汇总了Java中javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_INCLUDE属性的典型用法代码示例。如果您正苦于以下问题:Java BodyTag.EVAL_BODY_INCLUDE属性的具体用法?Java BodyTag.EVAL_BODY_INCLUDE怎么用?Java BodyTag.EVAL_BODY_INCLUDE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.servlet.jsp.tagext.BodyTag
的用法示例。
在下文中一共展示了BodyTag.EVAL_BODY_INCLUDE属性的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: doStartTag
@Override
public int doStartTag()
throws JspException
{
if(getPatient() != null)
{
return BodyTag.EVAL_BODY_INCLUDE;
}
else
return Tag.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: doStartTag
/**
* @see javax.servlet.jsp.tagext.TagSupport#doStartTag()
*/
@Override
public int doStartTag()
throws JspException
{
return getTransactionLogStatistics() == null ? BodyTag.SKIP_BODY : BodyTag.EVAL_BODY_INCLUDE;
}
示例10: 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;
}
示例11: doStartTag
@Override
public int doStartTag()
throws JspException
{
if(getSeries() != null)
{
return BodyTag.EVAL_BODY_INCLUDE;
}
else
return Tag.SKIP_BODY;
}
示例12: doStartTag
/**
* @see javax.servlet.jsp.tagext.TagSupport#doStartTag()
*/
@Override
public int doStartTag()
throws JspException
{
if(getImage() != null)
return BodyTag.EVAL_BODY_INCLUDE;
else
return Tag.SKIP_BODY;
}
示例13: doStartTag
@Override
public int doStartTag()
throws JspException
{
this.errorMessage = null;
this.welcomeMessage = null;
TransactionContext transactionContext = TransactionContextFactory.get();
transactionContext.setRequestType("getWelcomeMessage");
transactionContext.setTransactionId(UUID.randomUUID().toString());
ServletRequest servletRequest = this.pageContext.getRequest();
transactionContext.setOriginatingAddress(servletRequest.getRemoteAddr() + ":" + servletRequest.getRemotePort());
try
{
RoutingToken routingToken = RoutingTokenHelper.createSiteAppropriateRoutingToken(getSiteNumber());
BaseWebFacadeRouter router = FacadeRouterUtility.getFacadeRouter (BaseWebFacadeRouter.class);
this.welcomeMessage = router.getCachedWelcomeMessage(routingToken);
}
catch (MethodException mX)
{
errorMessage = "MethodException retrieving welcome message, " + mX.getMessage();
logger.error (errorMessage, mX);
//throw new JspException(errorMessage);
}
catch (ConnectionException cX)
{
errorMessage = "ConnectionException retrieving welcome message, " + cX.getMessage();
logger.error (errorMessage, cX);
//throw new JspException(errorMessage);
}
catch (RoutingTokenFormatException rtfX)
{
errorMessage = "RoutingTokenFormatException retrieving welcome message, " + rtfX.getMessage();
logger.error (errorMessage, rtfX);
//throw new JspException(errorMessage);
}
catch(Exception ex)
{
errorMessage = "Exception retrieving welcome message, " + ex.getMessage();
logger.error (errorMessage, ex);
//throw new JspException(errorMessage);
}
return (this.welcomeMessage == null && this.errorMessage == null) ? BodyTag.SKIP_BODY : BodyTag.EVAL_BODY_INCLUDE;
}