带有RESTful JSON服务的HTML Web框架,HTML5& jQuery ajax [英] Java web framework with RESTful JSON services, HTML5 & jQuery ajax

查看:280
本文介绍了带有RESTful JSON服务的HTML Web框架,HTML5& jQuery ajax的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

差不多是2013年,HTML5时代。 jQuery是Web Javascript-ing的事实标准。

It is almost year 2013, HTML5 age. jQuery is the de-facto standard for web Javascript-ing.

此链接适用于2010年:
https://stackoverflow.com/questions/3882082/rest-json-web-services-java-ee-framework

This link was good for year 2010: https://stackoverflow.com/questions/3882082/rest-json-web-services-java-ee-framework

我正在寻找将通过RESTful JSON Web服务公开域类的 Java Web框架。然后[希望]为这些域类生成Web表单。并使用jQuery ajax与服务器通信以发送/接收JSON数据并以HTML格式填充。

I am looking for Java web framework that will expose domain classes via RESTful JSON web services. Then will [hopefully] generate web forms for those domain classes. And uses jQuery ajax to communicate with server for sending/receiving JSON data and populate in HTML.

所有Web UI处理应该在客户端浏览器中。服务器应该只传输静态HTML5页面。没有像JSP那样的服务器端处理。

All web UI processing should be in client browser. Server should just transmit static HTML5 pages. No server-side processing like JSP.

UPDATE。我必须澄清一点,我的问题不在于用于创建Web服务的框架。 (有很多像Apache CXF,Spring MVC Web服务)。它不是关于jQuery也不是。但是 Java 框架将为客户端 - 服务器通信的样板编码节省时间。

UPDATE. I must clarify that my question point is not what framework to use for web-services creation. (There are a lot like Apache CXF, Spring MVC web services). It is not also about jQuery or not. But Java framework that will save time for boilerplate coding of client-server communication.

Groovy& Scala是很棒的东西,但它们不是Java,而是JVM语言。
(想象一下告诉你的队友我们应该学习类似Java的语言,并开始使用新的框架。)

Groovy & Scala are great things, but they are not Java, but JVM languages. (Imagine telling your teammates "We should learn Java-like language with some differences to start using a new framework." )

底线:

Java Web框架 + 静态HTML5页面 + JSON交互

Java web framework + static HTML5 pages + JSON interaction

推荐答案

您是否正在尝试使用Spring进行域休息映射和Grails的Scaffolding?尝试浏览这些链接以实现您的目标:

Did you trying exploring Spring for domain-rest mapping and Grails's Scaffolding ? Try exploring these links to achieve your goal :


  1. 域映射到REST端点

  2. 有关域名休息反模式的更多信息

  3. 使用脚手架使用域模型生成整个应用程序

  1. Domain mapping to REST endpoint
  2. More on domain rest antipattern
  3. Generate whole application using domain model using scaffolding

这篇关于带有RESTful JSON服务的HTML Web框架,HTML5& jQuery ajax的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆