【发布时间】:2016-06-29 08:29:18
【问题描述】:
我是 jquery 和 ajax 的新手。我想在 Struts2 中调用动作“LoginAction”的特定方法“注销”。我收到一个错误
没有为命名空间 / 和操作名称 logoutLoginAction 映射操作。
我的ajax代码是:
function signout(){
$.ajax({
type: "POST",
assync:false,
url: "logoutLoginAction.action",
success: function(messageResponse) {
response=messageResponse;
alert(response);
}});
}
【问题讨论】:
-
您的配置中有
logoutLoginAction操作吗?如果你不这样做,你可以创建一个。
标签: jquery ajax jsp struts2 struts-action