Hi All,

I have a query regarding input validation.

# Can we use method wise input validation in struts 2 ?
if this is not supported directly, then is there any workaround for the same.

#To utilise the xml based validation, I have to create different
action class for same module...like module is "user" and i had to
create different action classes like adduser.action, modifyuser.action
class etc...i have to do this as there are some fields which are
different in each action....ideally i want to have single action class
with different methods like add, modify, etc... to handle this..but
can not do it so as same set of validation will be called for each
method...which is not required in my case...

After some search and study, i came to know that there is annotation
validation which can be used and will be invoked per method...as
mentioned in this link
http://struts.apache.org/2.0.14/docs/validations-annotation.html

but here, in need to hard code, my messages which i really want to
avoid it, Is there any way to use property file here...please provide
suggestion on this.....

I have also learned that this annotation validation will not work for
client side validation. Is there any work around for this....


Kindly help me in this regard


Thanks

Gaurav

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to