求 DispatchAction 的页面请求例子 
谢谢

解决方案 »

  1.   

    struts-config.xml的ACTION中要配置parameter="method" <action
          parameter="method"
          path="/toworkplan"
          scope="request"
          type="com.lanzhengwu.struts.action.ToworkplanAction"
          validate="false" >
          <forward name="ok" path="/jsp/workplanadmin.jsp" />
        </action>ACTION如下,要继承BasedispatchAction不能有execute方法..public class ToworkplanAction extends BasedispatchAction {
    public ActionForward edit(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response) { }
    }页面就是:
    <a href="toworkplan.do?method=edit">test</a>
      

  2.   

    谢谢,已经成功。
    随便问下,DispatchAction 主要用在什么情况下呢?
      

  3.   

    有时一个ACTION中要处理多个逻辑时,要带参数过去判断,有点麻烦..
    用DispatchAction的话可以加快速度而且逻辑清楚..