$(function(){
   $.post("selectParaVal.action",{},function(json){
   alert("aaaaaaaaaaaaaaaa")
   },"json")
   }) <action name="selectParaVal" class="find_para" method="selectParaVal">
<result name="success" type="json"></result>
</action>public String selectParaVal(){
list= paramService.selectParaVal();
System.out.println(list.size());
return SUCCESS;
}action  可以正常执行

解决方案 »

  1.   

    return 的返回值不是SUCCESS 而是 null   这样就可以了  你试试
      

  2.   

    把浏览器的调试窗口打开,IE9的话是<F12>,有可能是代码出异常了。
      

  3.   

    把function(json)中的json去掉,试试,这个代码不知道想表达什么....
      

  4.   

    alert( "aaaaaaaaaaaaaaaa ")少了分号
    $.post()少了分号
    $(function(){})少了分号
    加上试试
      

  5.   

    public String getUsers() throws IOException{
    response.setHeader("Pragma", "no-cache" );
         response.addHeader("Cache-Control", "no-cache" );
         response.setContentType("application/json;charset=utf-8");//传送json格式的数据
    List<User> listUser=userService.listAllOfUser(SqlConstant.QUERY_ALL, null, null);

        JSONArray js=new JSONArray(listUser);
        PrintWriter print=response.getWriter();
        print.print(js.toString());
        print.flush();
        print.close();
    return null;
    }
    另外查看前台代码有没有错误,简单点就是使用firebug,查看火狐浏览器控制台有没有错误
      

  6.   

    http://
      

  7.   

    function(json)这个是什么意思呢? 如果要得到服务器响应的json数据,只需要服务端响应时设置contentType为 application/json就行,   而且jquery的ajax异步调用函数格式是这样的
    $.post("...action",
           {},
           function(returnedDate, status)
           {})function里面两个值必须是这两个  returnedDate代表的就是服务端响应过来的数据。。不管是什么格式都行
      

  8.   

    呵呵,js  jquery需不需要分号都行的,不像java呢