• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RedirectMessageInterceptor

 
Jordan Smith
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • 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?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic