解决方案 »

  1.   

    结果你要 response到画面。
      

  2.   

    都用了ajax了,有没有返回什么数据,页面会有变化吗
      

  3.   

    把代码粘上来看一看,不明白你什么意思,按我的理解是我觉着返回值类型应为String,你可以试试!
      

  4.   

    public class BaseAction implements Action { /****************属性*****************/
    public static String JSON = "tojson";
    private ResultBean resultBean = new ResultBean();

    /****************方法*****************/
    public String execute() throws Exception {
    return null;
    } protected ResultBean setMsg(String paramString, String str) throws Exception {
    this.resultBean.setMsgType(str);
    this.resultBean.setMsg(paramString);
    return this.resultBean;
    }
    public class TestAction extends BaseAction { private String str = "呵呵";
    @Override
    public String execute() throws Exception {
    setMsg(str, "info");
    return SUCCESS;
    }
    jsp:
    ${resultBean.msg} ${resultBean.msgType}可以获取到值但是这样
    public class TestAction extends BaseAction { private String str = "呵呵";
    @Override
    public String execute() throws Exception {
    //setMsg(str, "info");
    return SUCCESS;
    }

    public void getRB() throws Exception {
    this.str = "哈哈";
    setMsg(str, "info");
    } <zx:linkbutton id="btn" content="设置值" onClick="fnSetValue()"/>
    <zx:text id="txt"/>
    ${resultBean.msg} ${resultBean.msgType}
    <s:debug></s:debug>
    </body>
    <script type="text/javascript">
    function fnSetValue() {
    easyui.submit('tag/testAction!getRB.do',null,function(data) {
    easyui.alert('提示',data,'info');
    });
    }
    </script>
    页面就获取不到值了
      

  5.   

    Action的set get方法是不是只对同步加载有效,对异步无效?