Oh, got it
@FieldExpressionValidator(expression="(accountFileFileName.endsWith('.cs
v')", message="", key="validate.invalidFilename",
fieldName="accountFileFileName")
Forgot you could just call methods in OGNL :)
-Richard
-----Original Message-----
From: Richard Gundersen [mailto:[email protected]]
Sent: 27 February 2009 10:16
To: Struts Users Mailing List
Subject: String manipulation
Hi
I'm trying to validate that a filename has a .csv extension. I would
like to use @FieldExpressionValidator on the field but I can't get the
syntax right, and searching the docs I can't find much on String
manipulation in OGNL.
Could anyone help me out please?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]