Hi all,

I have a ActionBean that may receive a post from a source page other than 
itself.  Though, if validation fails i'd like to redirect back to this 
ActionBean's default hanlder. What I've tried so far is to implement 
ValidationErrorHandler and then add this method:

    public Resolution handleValidationErrors(ValidationErrors errors) throws 
Exception
    {
        return new RedirectResolution(getClass());
    }

I've also tried this:
        return new RedirectResolution(getClass()).flash(this);

>From what I've read, I thought that the errors would automatically be carried 
>over to the next request via flash scope. I've done a little tracing and can 
>see that they do get carried over, but then get wiped out in the next request 
>in the method named AnnotatedClassActionResolver.setActionBeanContext 

I'm certain I'm missing something basic here. Freddy's book makes it sound like 
the errors will get carried over automatically, though that appears not be the 
case.

What am I missing?

Thanks



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to