xid 是ProductAction类的成员。<result name="success" type="chain">bookAdd?typeid=${xid}</result>  

解决方案 »

  1.   

    我是想要将
    我这里想把bookAdd?typeid=912做成变量 
    想写成<result name="success" type="chain">${retpage} </result>
      

  2.   

    或是想写成 <result name="success" type="chain">${retpage}?typeid=${xid}  </result> 
    这样的,可是不行呀
      

  3.   

    在两个action里设置两个同名的 变量,配上set get方法
    action传递执行的时候会自动吧同名变量传递下去的。如:
    action1 中有个私有变量private int xxx 有get set
    给他赋值 
    xxx = 111;
    return SUCCESS; <result name="success" type="chain">action2</result> action2 中也有个私有变量 private int xxx 有get set 方法System.out.println("xxx");
    得到的结果就是 111
      

  4.   

    [col根据国际化or=#FF0000][/color]