File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Result (dispatch) in Struts2" Watch "Result (dispatch) in Struts2" New topic
Author

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.




-Paul
David Newton
Author
Rancher

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