Re: Struts Validator Framework: problem with Custom Validator

2008-06-26 Thread cacodemon79
No-reply? :( However, I solved. Now all works well. ** SERVER-SIDE ** To avoid the deprecated method Resources.getActionMessage(HttpServletRequest request, ValidatorAction va, Field field) I used Resources.getActionMessage(Validator v, HttpServletRequest request, ValidatorAction

Re: Struts Validator Framework: problem with Custom Validator

2008-06-25 Thread cacodemon79
Now, server-side validation works! I changed ActionErrors class with ActionMessages class into my java validation method and into "validator-rules.xml". The only problem is that Resources.getActionMessage(request, va, field) method in my custom validator class is deprecated and I don't know how to

Struts Validator Framework: problem with Custom Validator

2008-06-24 Thread cacodemon79
I'm using Struts 1.3. I'm trying to write a custom validator to check that 2 fields are identical. 1) I modified my validator-rules.xml by adding my own validator (called "uguale"): ** validator-rules.xml ** 2) I modified my validation.xml by