用javascript很好实现的啊。
if (document.formname.a.value == 1) {
   document.formname.action = "./action1.do";
} else {
   document.formname.action = "./action2.do";
}document.formname.submit();或者
先提交到inputAction(你的程序中是input)中,再在
inputAction中根据a的值,forward到其他的action中。struts-config.xml中这样写 :
<forward name="1" path="/action1.do"/>
<forward name="2" path="/action2.do"/>

解决方案 »

  1.   

    为什么要这样???
    一个action接受输入,
    根据a的值调用另外一个类的不同方法,处理完后返回
    一个字符窜,根据此字符窜转向到下一个视图
      

  2.   

    Agree with zhxx. Otherwise, it won't be called MVC.
      

  3.   

    由于需要,向外界提供一个统一接口,我需要将相应的请发转发给我的处理action
    或者我重组请求表单,让它自动提交请求也可以啊。大伙有什么好办法吗、?
      

  4.   

    Action
    /*if(a=1)
    {
     return new ActionForward("a.jsp");
    }else{
     return new ActionForward("b.jsp");
    }*/