File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Result (dispatch) in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Result (dispatch) in Struts2" Watch "Result (dispatch) in Struts2" New topic

Result (dispatch) in Struts2

Paul Michael Serrano
Ranch Hand

Joined: Nov 22, 2004
Posts: 59
Is there a way that I could dispatch the result of my action to a different action? I'm trying to work with the struts.xml but I think it's not working fine.

David Newton

Joined: Sep 29, 2008
Posts: 12617

A "redirectAction" is the normal way to redirect to a different action. If you want to forward, you're limited to "dispatch", in which case you need the complete URL (bad idea), or use a "chain" result, which is probably an even worse idea.
I agree. Here's the link:
subject: Result (dispatch) in Struts2