This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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
It's not a secret anymore!