Posted by Arsenalist on May 10th, 2007
This entry was posted on Thursday, May 10th, 2007 at 5:24 pm and is filed under java, struts, tech.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.
June 19th, 2007 at 8:10 pm
by the way Struts 2 also supports some client-side validation. (set validate=”true” on the form tag)
June 19th, 2007 at 8:20 pm
If you’re referring to DWR thats hardly client side. It’s a matter of preference though, I think ‘Really easy field validation’ is too slick and easy to not be used.
June 19th, 2007 at 8:23 pm
The DWR isn’t, but the JavaScript validation is.
It can also be very convenient to annotate the Action with validations rather than the bean, because different Actions may expect different bean data.
June 19th, 2007 at 8:32 pm
I’ll vouch for dexagogo. Struts should think about bringing that little project in…
August 23rd, 2007 at 8:25 am
@SkipValidation annotation on the action method doesnt work for me .Validation occurs for all the actions mapped to the same action class. Why so ?
October 17th, 2007 at 3:17 am
I have 2 mothods caled edit() and create() I used annotation based validation
but tthing is i want to validate some of experssions in edit method and some of the in create() method
cant use @skipValidation in this
my problem is i can not difine this seperatly in my actiion class ..both methods get validate from all expressions? any 1 have a ida?
December 6th, 2007 at 12:13 pm
Can we use annotation to dependents fields? For example, if we have to validate fields: “password” and “repeat password”, this values must be the same. How we can do it?
Thanx!
December 29th, 2007 at 3:28 pm
Is there a way for the validation messages to be added the actionErrors instead of the field?
February 15th, 2008 at 1:41 pm
Hildi:
@FieldExpressionValidator(expression = “(confirmPassword == password)”, fieldName = “confirmPassword”, message = “Passwords must match”)
February 21st, 2008 at 4:40 am
password == passwordVerifier
February 22nd, 2008 at 9:16 am
Can a message be parameterized in the key attribute?
like:
@RequiredFieldValidator(message=”", key=”required.field”)
and the key with a param:
required.field = The field {0} is required.
how can I pass the param?
March 26th, 2008 at 3:14 am
aSlsnV hi good site thx http://peace.com