You're forwarding to a bean with errors, then one you're in there, you're 
forwarding to a page with no errors.

After adding the error, you want to just forward to the page.  You shouldn't 
forward to beans, redirect to them after a post then always forward to a page.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alex
Sent: Monday, May 12, 2008 9:31 AM
To: [email protected]
Subject: [Stripes-users] errors are not forwarded - help plz

Hi!

On items.jsp page i have tag <stripes: errors/>.
On this page I have a form which calls Some1ActionBean.autoAddItem() containing
lines:

this.getContext().getValidationErrors().addGlobalError(new SimpleError("Item was
not added."));
return new ForwardResolution(Some2ActionBean.class, "listItems");

Some2ActionBean.listItems() forwards to items.jsp, but I can not see the error
"Item was not added." there.

Other errors that are added in listItems() are shown. And I'm sure I don't do
any errors processing.

Is this documented to be so and I'm wrong expecting that messages will be passed
on forward or am I doing something wrong? What should I do to make it work?

Thanks in advance.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to