Spring-portlet POST ajax xmlHttpRequest

半世苍凉 提交于 2019-12-02 07:31:19

How do you construct the URL? I think you're creating a Action URL, perhaps it should be an render URL. It means, instead of <portlet:actionURL/> you should be using <portlet:renderURL/>.

Hope it helps.

lisak

I suppose the best way to respond to ajax requests in spring portlets is described in this blog post Marshal Json data using Jackson in Spring MVC with Jaxb Annotations

This also helpful Create JSON response for AJAX request in spring 3.0

Unfortunately it is not so fancy as it would be in spring-web-mvc

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