wuchaowen0668 2011-08-11 19:33
浏览 336
已采纳

jquery的post请求到jsf页面对应的Bean,post方法的参数url该怎么写

jquery的post请求到jsf页面对应的Bean,post方法的参数url该怎么写,
jQuery.post(url,data,success(data, textStatus, jqXHR),dataType),有没人知道的,

  • 写回答

5条回答 默认 最新

  • laopeng301 2011-08-11 21:38
    关注

    [code="java"]

    你的bean那么是这个scm.salesOrderDetailFormBean对吧
    那么
    你post递交的url 你就写成这样吧
    scm.salesOrderDetailFormBean.postcustomerName

    然后再你的bean种定义方法

    public void postcustomerName(ActionEvent evt) {
    这个地方取到前台的customerName
    }
    和private String customerName;

    然后customerName对应的get/set方法
    [/code]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?