• 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

RedirectMessageInterceptor

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to use:

RedirectMessageInterceptor

the problem is, that it wants me to add
<result name="input"> </result>
to the action that i am redirecting towards.

but if i declare it like this:
<result name="input">/resources/video.jsp</result>

it does not call the method to display other data on the screen.

and if i write the action to excecute:
<result name="input" type="redirectAction">getFirstVideo</result>

it calls it again and again and again and do not stop.

how can i handle it?
 
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
As far as I know the interceptor doesn't care if you have an "input" mapping, but if validation fails the "workflow" interceptor does.
 
Jordan Smith
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it's write. the "workflow" interceptor is invokes, but i need to define "input" mapping which doesn't display the rest the of the information on the page which should come from getFirstVideo action..

how can i handle it?
 
David Newton
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
Without understanding the flow of your application it's really difficult to help.

As a first step I'd recommend diagramming your flow, understanding when and where request parameters might be lost, checking where and how your validation happens, and where and how you need various messages preserved.
reply
    Bookmark Topic Watch Topic
  • New Topic