Spring-portlet POST ajax xmlHttpRequest

前端 未结 2 880
梦谈多话
梦谈多话 2021-01-28 05:53

Could please anybody who has experiences with processing post xmlHttpRequests with Spring DispatcherPortlet, tell me what is the best way to do it ? I\'m using YUI io module and

相关标签:
2条回答
  • 2021-01-28 06:08

    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.

    0 讨论(0)
  • 2021-01-28 06:09

    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

    0 讨论(0)
提交回复
热议问题