On 7/11/05, Rafael Taboada <[EMAIL PROTECTED]> wrote:
> Hi. When I turned off validation yn mi struts-config.xml, validation isn't
> called. And when I turned off validation and call validate manually inside a
> method of my ActionClass, validation isn't called.
>  I calle validate method in:
>  public ActionForward buscarColor(ActionMapping mapping, ActionForm
> form,HttpServletRequest request, HttpServletResponse response) {
> ...
> colorForm.validate(mapping,request);
> ...
> }
>  Maybe I'm calling this validate method in an incorrect way??

Hmm... It should be called. Are you sure that your validate in the
form overrides validate(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request) and not this one
ActionErrors validate(ActionMapping mapping,
javax.servlet.ServletRequest request) ?

Put some debug output into your validate method as well before and
after your call to colorForm.validate(mapping,request), maybe this one
is not called.

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to