Please sugest how to do the macro validation in velocity

2007-06-11 Thread tallurisuresh
Hi, I am using the velocity for UI purpose.when i am developing the velocity pages i am using the macros. now i am validating the velocity page where i am using the macro's those fields are not validating. I am using the struts2.0.6 and tomcat6.0 . I am writing the macro in my velocity page.

Re: Please sugest how to do the macro validation in velocity

2007-06-11 Thread Jeromy Evans
It's important to understand that S2 validation applies to objects, not to the html fields in your form. That is, first the setters in your action are called, then the validator calls the getters to check the values. If the parameters aren't reaching your action then validation will fail.