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


Java ExpressionEvaluator类代码示例

本文整理汇总了Java中javax.servlet.jsp.el.ExpressionEvaluator的典型用法代码示例。如果您正苦于以下问题:Java ExpressionEvaluator类的具体用法?Java ExpressionEvaluator怎么用?Java ExpressionEvaluator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ExpressionEvaluator类属于javax.servlet.jsp.el包,在下文中一共展示了ExpressionEvaluator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
/**
 * Attempts to get the PageContext object stashed away in the DispatcherHelper
 *  and use it to generate an ExpressionEvaluator.
 *
 * @return an ExpressionEvaluator if possible, or null otherwise
 */
@Override
protected ExpressionEvaluator getEvaluator() {
    final PageContext context = DispatcherHelper.getPageContext();

    if (context == null) {
        log.error("Could not process expression based validation. It would seem that ",
                  "your servlet container is being mean and will not let the dispatcher ",
                  "servlet manufacture a PageContext object through the JSPFactory. The ",
                  "result of this is that expression validation will be disabled. Sorry.");
        return null;
    }
    else {
        return context.getExpressionEvaluator();
    }
}
 
开发者ID:nkasvosve,项目名称:beyondj,代码行数:22,代码来源:Jsp20ExpressionExecutor.java

示例2: getEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
/**
 * Attempts to create an expression evaluator by reflecting to find the implementation
 * in the apache commons-el project.
 *
 * @return an instance of ExpressionEvaluatorImpl if it can, null otherwise
 */
@Override
protected ExpressionEvaluator getEvaluator() {
    try {
        return (ExpressionEvaluator)
                ReflectUtil.findClass(COMMONS_CLASS).newInstance();
    }
    catch (Exception e) {
        return null;
    }
}
 
开发者ID:nkasvosve,项目名称:beyondj,代码行数:17,代码来源:CommonsElExpressionExecutor.java

示例3: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
@Override
@Deprecated
public ExpressionEvaluator getExpressionEvaluator() {
    return invokingJspCtxt.getExpressionEvaluator();
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:6,代码来源:JspContextWrapper.java

示例4: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
/**
 * Provides programmatic access to the ExpressionEvaluator. The JSP
 * Container must return a valid instance of an ExpressionEvaluator that can
 * parse EL expressions.
 */
@Override
@Deprecated
public ExpressionEvaluator getExpressionEvaluator() {
    return new ExpressionEvaluatorImpl(this.applicationContext.getExpressionFactory());
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:11,代码来源:PageContextImpl.java

示例5: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
public ExpressionEvaluator getExpressionEvaluator() {
	return invokingJspCtxt.getExpressionEvaluator();
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:4,代码来源:JspContextWrapper.java

示例6: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
@Override
@Deprecated
public ExpressionEvaluator getExpressionEvaluator() {
	return invokingJspCtxt.getExpressionEvaluator();
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:6,代码来源:JspContextWrapper.java

示例7: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
/**
 * Provides programmatic access to the ExpressionEvaluator. The JSP
 * Container must return a valid instance of an ExpressionEvaluator that can
 * parse EL expressions.
 */
@Override
@Deprecated
public ExpressionEvaluator getExpressionEvaluator() {
	return new ExpressionEvaluatorImpl(this.applicationContext.getExpressionFactory());
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:11,代码来源:PageContextImpl.java

示例8: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
public ExpressionEvaluator getExpressionEvaluator() {
    return null;
}
 
开发者ID:ArneLimburg,项目名称:jpasecurity,代码行数:4,代码来源:MockPageContext.java

示例9: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
public ExpressionEvaluator getExpressionEvaluator() {
return invokingJspCtxt.getExpressionEvaluator();
   }
 
开发者ID:eclipse,项目名称:packagedrone,代码行数:4,代码来源:JspContextWrapper.java

示例10: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
@Override
public ExpressionEvaluator getExpressionEvaluator() {
	throw new RuntimeException("Not implemented");
}
 
开发者ID:ggeorgovassilis,项目名称:fauxjsp,代码行数:5,代码来源:JspPageContextImpl.java

示例11: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
@Override
public ExpressionEvaluator getExpressionEvaluator() 
{		
	return null;
}
 
开发者ID:mtpettyp,项目名称:openreports,代码行数:6,代码来源:MockDisplayTablePageContext.java

示例12: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
public ExpressionEvaluator getExpressionEvaluator()
{
	// TODO Auto-generated method stub
	return null;
}
 
开发者ID:nyla-solutions,项目名称:nyla,代码行数:6,代码来源:TestPageContext.java

示例13: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
@Override
public ExpressionEvaluator getExpressionEvaluator() {
  throw new UnsupportedOperationException();
}
 
开发者ID:ontopia,项目名称:ontopia,代码行数:5,代码来源:FakePageContext.java

示例14: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
@Override
public ExpressionEvaluator getExpressionEvaluator() {
	// TODO Auto-generated method stub
	return null;
}
 
开发者ID:shaolinwu,项目名称:uimaster,代码行数:6,代码来源:MockPageContext.java

示例15: getExpressionEvaluator

import javax.servlet.jsp.el.ExpressionEvaluator; //导入依赖的package包/类
@Override
public ExpressionEvaluator getExpressionEvaluator() {
	throw new RuntimeException("not supported!");
}
 
开发者ID:lucee,项目名称:Lucee,代码行数:5,代码来源:PageContextImpl.java


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