Because Struts 2 uses a filter mechanism to do the dispatching job, instead of a servlet in Struts 1, and the "inner" forwarding action can not touch off a http request filter. I don't know any solution so far. Sorry for my worse English.
Joined: Mar 12, 2008
Hi francis, thanks for your reply. Yes, I have googling that. struts 1 is a servlet, so we can easily do request dispatcher forward to struts 1 action. And struts 2 is pojo class, that serve in FilterDispatcher as a servlet filter. http://www.geekinterview.com/question_details/45416
I have debug struts 2 source code, and learn it (yeah, struts is open source ). I think we can use Struts 2 Dispatcher to forward. I'm pretty sure if the Dispatcher can done in Struts 2 Action, but not in Servlet...
Krem in the future try to create a new topic for your problem using button. Although I've not tried it, try to map your struts 2 filter to request dispatching too using the <dispatcher> tag of the <filter-mapping> tag (more info here)...