You can make your actionBean implement ValidationErrorHandler and use 
something like this:

public Resolution handleValidationErrors(ValidationErrors errors) throws 
Exception {
  if 
("XMLHttpRequest".equals(this.getContext().getRequest().getHeader("X-Requested-With")))
 
{
    return new ForwardResolution("/errorAjax.jsp");
  }
return null;
}

errorAjax.jsp contains <s:errors/>.



Alex Sarco wrote:
> I have the same error, but the situation is a bit different.
> I'm posting an Ajax request to the action, there are some validation
> errors, and then Stripes returns this page. I understand why it
> happens, but how can I avoid it? Since it's an Ajax request, I only
> need the error messages to show them on screen using the Ajax
> callback. 




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to