jQuery in Action, 3rd edition
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
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: http://aspose.com/file-tools
subject: Result (dispatch) in Struts2
It's not a secret anymore!