Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Validation > expression validator |

Apache Struts 2 Documentation
expression validator
Edit Page Browse Space Add Page Add News
Added by tm_jee, last edited by Philip Luppens on Feb 10, 2007 (view change) show comment hide comment
Comment: Fixed macro url
View page history

# Description

A Non-Field Level validator that validates based on regular expression supplied.

# Parameters

- expression - the Ognl expression to be evaluated against the stack (Must evaluate to a Boolean)

# Examples

    <validators>
          <validator type="expression">
             <param name="expression"> .... </param>
             <message>Failed to meet Ognl Expression  .... </message>
          </validator>
    </validators>