其实返回的就是一个ActionForward对象。在Action中我们根据程序执行的不同情况,决定接下来的页面走向(比如返回到输入页面或者转到下一个页面),并将这些信息保存在ActionForward对象中。而接下来控制器就可以直接利用该ActionForward对象来进行页面的流转。下面是org.apache.struts.action.RequestProcessor类的processForwardConfig()方法的摘录,该方法调用发生在Action实例调用后。
protected void processForwardConfig(HttpServletRequestrequest,HttpServletResponseresponse,ForwardConfig forward)
throws IOException, ServletException {
…String forwardPath = forward.getPath();
String uri = null;// paths not starting with /
should be passed through without any processing//







