Struts 2 Action error

1.5k views Asked by At

I have a problem with struts 2 action error while forwarding from one action to another action .The problem lies as there is a interceptor in between and we are doing a redirect action

Can I some how copy the action error from old action to current action or save the action error in the session?

It will highly appreciable if some one gives a working peice of code

Thanks

2

There are 2 answers

0
Quaternion On

Your result type is currently "redirect" or "redirectAction" these reset the value stack use "chain". Although you should generally look for a solution that does not use any of the aforementioned result types...

0
Saurabh On

I am also facing same problem for showing successfully saved message. Here's what I got while googling the solution. http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/ Hope it helps you.