Hello: IN a jsp in my application, I have form whose action points at a Struts 2 Action. The form submits successfully and the contents of the Action complete normally. Then I tried to implement the execAndWait intereceptor as per page 370 in the book. The refresh is set at 2 seconds.
It didn't work well . . . through debugging I find that the Action is being performed twice. The second time, it fails validation (all the fields are then "empty") and I get forwarded back to my jsp with validation messages. I tried placing the execAndWait interceptor-ref both before and after the default stack but neither worked. Any ideas?
The target of the execAndWait refresh should either be an action (or action method) that doesn't expect any parameters, or the URL used should include all the relevant parameters. Which you use depends on the application.
I'm assuming you already looked at the execAndWait documentation, but if you didn't, there it is.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com