public class Jsp21ExpressionExecutor extends java.lang.Object implements ExpressionExecutor
ExpressionExecutor
that uses the new EL API available in Java
EE 5 in the javax.el
package. While more complicated that the JSP 2.0 API it has
one advantage which is that it can be used without the need to allocate a PageContext
object and without any other libraries being available.Modifier and Type | Class and Description |
---|---|
protected static class |
Jsp21ExpressionExecutor.StripesELContext
Implementation of the EL interface for managing expression context.
|
protected static class |
Jsp21ExpressionExecutor.StripesELResolver
Implementation of the EL interface to resolve variables.
|
ERROR_DEFAULT_SCOPE, ERROR_KEY, THIS
Constructor and Description |
---|
Jsp21ExpressionExecutor()
Default constructor that throws an exception if the JSP2.1 APIs are not available.
|
Modifier and Type | Method and Description |
---|---|
void |
evaluate(ActionBean bean,
ParameterName name,
java.util.List<java.lang.Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors)
Performs validation of an ActionBean property using the expression contained
within the validation metadata.
|
protected javax.el.ExpressionFactory |
getExpressionFactory()
Creates an ExpressionFactory using the JspApplicationContext.
|
public Jsp21ExpressionExecutor()
public void evaluate(ActionBean bean, ParameterName name, java.util.List<java.lang.Object> values, ValidationMetadata validationInfo, ValidationErrors errors)
ExpressionExecutor
evaluate
in interface ExpressionExecutor
bean
- the ActionBean instance owning the field being validatedname
- the name of the field being validatedvalues
- the List of values (post type conversion), each to be validatedvalidationInfo
- the validation metadata for the fielderrors
- the ValidationErrors object into which to place any errorsprotected javax.el.ExpressionFactory getExpressionFactory()
? Copyright 2005-2006, Stripes Development Team.