I have encountered a validation that seems to disrupt the S2 request life
cycle. If I have the following validation and foo is not found on the
stack, I do not get a result!
<validators>
<field name="name">
<field-validator type="expression">
foo.startsWith(validPrefix)
<message key="nameStart" />
</field-validator>
</field>
</validators>
OgnlRuntime is throwing a NPE and ValidationInterceptor is not catching it.
If I change my validation to:
foo != null && foo.startsWith(validPrefix)
it works.
Scott
--
View this message in context:
http://www.nabble.com/expression-validator-NPE-tp21039786p21039786.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]