当前位置: 首页>>代码示例>>Java>>正文


Java BodyTag.EVAL_BODY_INCLUDE属性代码示例

本文整理汇总了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;
	}
}
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:26,代码来源:AbstractUrlCollectionTag.java

示例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;
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:10,代码来源:StringArrayList.java

示例4: doStartTag

@Override
public int doStartTag() 
throws JspException
{
	if(getPatient() != null)
	{
	    return BodyTag.EVAL_BODY_INCLUDE;
	}
	else
		return Tag.SKIP_BODY;
}
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:11,代码来源:AbstractPatientTag.java

示例5: doStartTag

@Override
   public int doStartTag() 
throws JspException
   {
	file = getFile();
	return file == null ? BodyTag.SKIP_BODY : BodyTag.EVAL_BODY_INCLUDE;
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:7,代码来源:AbstractJavaLogTag.java

示例6: doStartTag

@Override
   public int doStartTag() 
throws JspException
   {
	resolvedArtifactSource = getResolvedArtifactSource();
	return resolvedArtifactSource == null ? BodyTag.SKIP_BODY : BodyTag.EVAL_BODY_INCLUDE;
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:7,代码来源:AbstractResolvedArtifactSourceTag.java

示例7: doStartTag

@Override
   public int doStartTag() 
throws JspException
   {
	artifactSource = getArtifactSource();
	return artifactSource == null ? BodyTag.SKIP_BODY : BodyTag.EVAL_BODY_INCLUDE;
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:7,代码来源:AbstractArtifactSourceTag.java

示例8: doStartTag

@Override
   public int doStartTag() 
throws JspException
   {
	site = getSite();
	return site == null ? BodyTag.SKIP_BODY : BodyTag.EVAL_BODY_INCLUDE;
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:7,代码来源:AbstractSiteTag.java

示例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;
}
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:9,代码来源:TransactionLogStatisticsTag.java

示例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;
}
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:11,代码来源:AbstractMapElement.java

示例11: doStartTag

@Override
public int doStartTag() 
throws JspException
{
	if(getSeries() != null)
	{
	    return BodyTag.EVAL_BODY_INCLUDE;
	}
	else
		return Tag.SKIP_BODY;
}
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:11,代码来源:AbstractSeriesTag.java

示例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;
}
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:12,代码来源:AbstractImageTag.java

示例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; 
}
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:45,代码来源:WelcomeMessageTag.java


注:本文中的javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_INCLUDE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。