Backbone.js with servlet as backend

痴心易碎 提交于 2020-02-05 13:09:33

问题


I'm very new to backbone Js. I have gone through the documentation. I'm trying to create a sample aplication with servlet as the backend for saving models. I could not find any help for that. What i need is:

  1. is it possible to communicate with servlet? And if so, how to communicate with servlet? (some sample code)
  2. is router required to communicate with server?

回答1:


Backbone is a client side framework. Its build to work with a RESTful backend. So all you need is a backend that can compute GET, POST, PUSH, DELETE etc. Maybe Restlet is a solution for your backend.



来源:https://stackoverflow.com/questions/8830681/backbone-js-with-servlet-as-backend

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