• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

execAndWait problem

 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic