com.cc.framework.ui
Class ELSupport

java.lang.Object
  extended bycom.cc.framework.ui.ELSupport

public abstract class ELSupport
extends java.lang.Object

Common Controls Expression Language (EL) Support class

Version:
$Revision: 1.8 $
Author:
Harald Schulz

Nested Class Summary
protected static class ELSupport.BeanVariableResolver
          Variable Resolver
protected static class ELSupport.ELFunctionMapper
          Function Mapper
protected static class ELSupport.ELLogger
          Logger
 
Field Summary
private static org.apache.commons.logging.Log log
          Logging instance
 
Constructor Summary
private ELSupport()
          Constructor
 
Method Summary
static java.lang.Object evaluate(javax.servlet.jsp.PageContext ctx, java.lang.String expression)
          Evaluates the given expression or expression string.
static java.lang.Object evaluate(javax.servlet.jsp.PageContext ctx, java.lang.String expression, java.lang.Object bean, java.lang.String beanName)
          Evaluates the given expression or expression string.
static java.lang.String evaluateToString(javax.servlet.jsp.PageContext ctx, java.lang.String expression)
          Evaluates the given expression or expression string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Logging instance

Constructor Detail

ELSupport

private ELSupport()
Constructor

Method Detail

evaluateToString

public static java.lang.String evaluateToString(javax.servlet.jsp.PageContext ctx,
                                                java.lang.String expression)
                                         throws javax.servlet.jsp.el.ELException,
                                                org.apache.commons.el.parser.ParseException
Evaluates the given expression or expression string. The bean is made accessible under the identifier beanName

Parameters:
ctx - Jsp Page Context
expression - The Expression
Returns:
Returns the result
Throws:
javax.servlet.jsp.el.ELException - is thrown in case of an expression error
org.apache.commons.el.parser.ParseException - is thrown in case of a syntax error

evaluate

public static java.lang.Object evaluate(javax.servlet.jsp.PageContext ctx,
                                        java.lang.String expression)
                                 throws javax.servlet.jsp.el.ELException,
                                        org.apache.commons.el.parser.ParseException
Evaluates the given expression or expression string. The bean is made accessible under the identifier beanName

Parameters:
ctx - Jsp Page Context
expression - The Expression
Returns:
Returns the result
Throws:
javax.servlet.jsp.el.ELException - is thrown in case of an expression error
org.apache.commons.el.parser.ParseException - is thrown in case of a syntax error

evaluate

public static java.lang.Object evaluate(javax.servlet.jsp.PageContext ctx,
                                        java.lang.String expression,
                                        java.lang.Object bean,
                                        java.lang.String beanName)
                                 throws javax.servlet.jsp.el.ELException,
                                        org.apache.commons.el.parser.ParseException
Evaluates the given expression or expression string. The bean is made accessible under the identifier beanName

Parameters:
ctx - Jsp Page Context
expression - The Expression
bean - The Bean
beanName - The identifier under which the bean is made visible (default is "bean")
Returns:
Returns the result
Throws:
javax.servlet.jsp.el.ELException - is thrown in case of an expression error
org.apache.commons.el.parser.ParseException - is thrown in case of a syntax error


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.