wood burning stoves 2.0*
The moose likes Struts and the fly likes RedirectMessageInterceptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "RedirectMessageInterceptor" Watch "RedirectMessageInterceptor" New topic
Author

RedirectMessageInterceptor

Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Posts: 89
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Apr 06, 2008
Posts: 89
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

Joined: Sep 29, 2008
Posts: 12617

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RedirectMessageInterceptor
 
Similar Threads
Problem of resubmisson in struts2
Jsp is not displaying in Struts2
struts.xml problem in struts2
how to use <s:token>
Passing value from one action redirect