Struts2.3.4 json 调用总是error not found?????

struts-json.xml配置:


method="currentPage">



js:
$("#currpage").change(function(){
$.ajax({
type: "post",
dataType: "json",
url: "/json/tasksJson",
data: "pagingUtil.currPage=2 ,

success: function(msg){
alert(msg);
},
error:function(e, jqxhr,exception){
alert(exception);
}
});

});

action ::

public String currentPage(){
    System.out.println(pagingUtil.getCurrPage());
    pagingUtil.setEndPage(list.size());
    return Action.SUCCESS;
}

求指导.................

url: "/json/tasksJson",

你的路径不对?/项目名/json/tasksJson.*?你用的是do还是action,还是什么?

如果不用绝对路径,就把/json 前面的/去掉。。
要么就
url:"<%=request.getContextPath()%>/json/tasksJson.do或者.action或者.????"