Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

execAndWait problem

 
John Eric Hamacher
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

my config:



my jsp:

 
KRISHNA KK
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I also have a same problem. it's working fine if we remove execAndwait interceptor reference entry from action mapping.
[ December 08, 2008: Message edited by: KRISHNA KK ]
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic