为简单易用的应用程序选择哪个J2EE Web开发框架? [英] Which J2EE web development framework to choose for a simple, accessible application?

查看:152
本文介绍了为简单易用的应用程序选择哪个J2EE Web开发框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在J2EE上编写一个简单的Web应用程序,具有以下特征:

I want to write a simple web application, on J2EE, with these characteristics:


  1. 我不需要任何AJAX,并且它甚至可以在浏览器上禁用JavaScript。

  2. 这是一个简单的CRUD应用程序

  3. 我需要完全控制每个元素的方式在页面上展示 - 不要牺牲GUI的外观和感觉。

  4. 我可以使用普通的旧JDBC进行数据访问 - 不需要o / r映射器

  5. 页面的书签是必要的(在任何有意义的书签中都是如此)。

  6. 我的许多用户都非常使用标签式浏览。

  1. I don't need any AJAX, and it should even work with JavaScript disabled on the browser.
  2. It is a simple CRUD application
  3. I would need full control on the way each element is laid out on the page - no compromise on the GUI's look and feel.
  4. I can use plain old JDBC for data access - no o/r mappers necessary
  5. Bookmarking of pages is necessary (wherever it makes sense to bookmark, that is).
  6. Many of my users use tabbed browsing very much.

我想要的框架是:


  1. 给我一个很好的抽象来检索GET和POST参数

  2. 给我一个很好的工具来向用户显示验证错误和其他错误

  3. 给出一套标准安全功能 - 防止跨站点脚本,防止用户设置丢弃向下输入到下拉列表中没有的值,et.al

  4. 在功能不太强大的服务器上,超过200个并发用户可以很好地扩展。 (没有集群 - 单个节点,具有多个生产应用程序的共享应用服务器)

  5. 保持稳定;因为我希望该应用程序在没有主要重构的情况下运行至少3 - 4年

  1. Give me a nice abstraction to retrieve GET and POST parameters
  2. Give me a nice facility to display validation errors and other errors to the user
  3. Give a set of standard safety features - prevent cross-site scripting, prevent the user from setting a dropdown input to a value that isn't there in the dropdown, et.al
  4. Be performant, scale well for over 200 concurrent users, on a not-so-powerful server. (no clusters - single node, a shared app server with multiple production applications)
  5. Be stable; because I'd like to have that application running without a major refactor for at least 3-4 years

我看了几个框架,这就是我的感受..

I looked at a few frameworks, and this is what I felt..


  1. 普通Servlets / JSP - 我需要自己编写代码 - 这需要时间,可能有很多错误

  2. Struts(1.x) - 与普通的servlet方法相比,它没有提供太多的优势;虽然它确实将POST和GET参数映射到表单bean,但我正在寻找的其他功能并不存在;我需要花很多时间自己编写代码

  3. JSF - 由于我读过的性能问题,我很害怕它。视图构造和维护似乎占用了太多的内存。此外,JSF不适用于书签和标签浏览器。

  4. Tapestry - 我看了一下Tapestry 5.虽然看起来不错,但它似乎与标签式浏览不相容书签。虽然肯定支持激活上下文,但它只是一个字符串。它无法使用GET参数和隐藏的表单字段(尚未)恢复状态。此外,似乎对框架的寿命感到担忧 - 它似乎在没有向后兼容性的情况下发展。

  5. Apache Turbine - 一开始看起来很好;但事实上它已经很老了并且没有太多的活动让我感到害怕。

  1. Plain Servlets/JSP - I need to code everything myself - this would take time, and probably have many bugs
  2. Struts (1.x) - Doesn't provide too many advantages over the plain servlet approach; while it does map POST and GET parameters to form beans, the other features I'm looking for aren't there; and I need to invest a lot of time coding them myself
  3. JSF - I'm scared of it because of the performance problem I've read about. It seems like the view construction and maintenance takes up too much memory. Also, JSF won't work well with bookmarks and tabbed browsers.
  4. Tapestry - I took a look at Tapestry 5. While it looked good, it too seemed to be incompatible with tabbed browsing and bookmarking. While there is certainly support for "activation context", it is only a single string. It can't restore the state with GET parameters and hidden form fields (yet). Additionally, there seemed to be concern about the longevity of the framework - it appeared that it evolves without backward compatibility.
  5. Apache Turbine - It looked good at first; but the fact that it's quite old and there's no much activity going on scares me.

有什么建议对我有什么好处?
谢谢!

Any suggestions on what would be good for me? Thank you!

PS:我被限制使用根据Apache许可证(v2,优选地)或BSD许可证获得许可的产品

PS: I'm constrained to use one that's licensed under Apache license (v2, preferably) or BSD license

推荐答案

这是一个相当新的java框架,但我认为它看起来非常棒

It is rather new java framework, but I think it looks pretty awesome

playframework

这篇关于为简单易用的应用程序选择哪个J2EE Web开发框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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