--- [EMAIL PROTECTED] wrote: > I need to perform database access for validation. Is the best place to do > this in my ActionSupport-derived class?
Probably, depending on how your business logic is designed. It's fairly common (AFAIK, anyway) to do "simple" validation via annotation- or XML-configured validation by calling super.validate() inside an action's validate() method then call out to business logic to do non-trivial validation. > how can I mark which fields have validation errors? By adding a field error [1]. Dave [1] http://struts.apache.org/2.0.11/struts2-core/apidocs/com/opensymphony/xwork2/ValidationAware.html#addFieldError(java.lang.String,%20java.lang.String) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]