Struts2 jquery Plugin responds to ajax requests with HTML of the entire page

心不动则不痛 提交于 2019-12-03 17:09:41

The response is exactly the thing that returned by the result after its execution. Whatever result is configured to return the result as a response, whichever result type and result code is actually returned it's all depends on your action configuration.

The problem you have that returns a whole page as a result is because the INPUT result is returned when the validation fails. You have to either remove the validation interceptor from the stack or if it's a dispatcher result type, update the location attribute of the result config before the result is executed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!