Monday, February 25, 2008

Struts2 Validaions

Hi ,

I got a problem in struts2 validations.
I have used both xml based and annotation based validations
But , The error messages don't get cleared once we get a error message and it will repeat in the UI.

This will happen with the simple theme ,as if we don't use the theme the components will not be placed in the proper way.

That issue was not there when we dot use a theme but the components were here and there.

So can u please help me to use the validations correctly with a example.

Reply 1.

Actually , i got the same problem and i change the ( override )

simple theme by changing the form-close_validate.ftl , form_validate.ftl files and adding a error list to it and use that error list in the code to show all errors and clear that list.



1 comment:

SSG said...

Please Post your suggestions here