Gotcha. Well its really the messages I want anyhow. I haven't gotten to look at 
this closely again. I think I have a messages tag on the view but it still 
wasn't showing the error messages. I'll confirm this though.
Thanks for looking into this Ben.

Evan


On Oct 8, 2010, at 7:11 AM, Ben Gunter wrote:

> Looking at the svn log, this came up when I was fixing some file 
> upload-related stuff in May, 2008. There is one little line in the log (r921) 
> that indicates we agreed that validation errors should not carry forward on a 
> flash/redirect. This is just a note to let you know this has come up before, 
> and Stripes is doing what is intended. Messages survive; errors don't.
> 
> -Ben
> 
> On Thu, Oct 7, 2010 at 6:39 PM, Evan Leonard <evan.leon...@gmail.com> wrote:
> 
> 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
> 
> ------------------------------------------------------------------------------
> 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

------------------------------------------------------------------------------
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