如何开始使用 Java 构建 Web 应用程序? [英] How do I get started building web apps with Java?

查看:25
本文介绍了如何开始使用 Java 构建 Web 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始使用 java 进行 Web 开发.我不知道如何开始,学习什么,或者什么是最好的学习和使用的网络框架.帮帮我?

I want to start web developing with java. I don't know how to start, what to learn, or what is the best web framework to learn and use. Help me out?

推荐答案

我假设您只是 Web 应用程序的新手,而不是 Java 本身.

I assume, that you're only new to web apps and not to Java itself.

对于初学者,我可以推荐 Apache Wicket 前端框架.他们的网站上有很多例子,邮件列表是开始的好地方,还有 Wicket in Action 读起来很愉快.

For a starter, I can recommend the Apache Wicket framework for the front end. Their web site is full of examples, the mailing lists are a great place to get started, and Wicket in Action was an enjoyable read.

如果您想使用 Java Server Pages (JSP),那么您绝对还应该包括 Java Server Faces (JSF),它使使用 JSP 变得更加容易.我不能向你推荐任何好书,因为我主要是为了网络教程.您可能想看看 Apache MyFaces.

If you want to work with Java Server Pages (JSP), then you should definitely also include Java Server Faces (JSF) which make working with JSPs a lot easier. I can't advocate any good books to you as I went for web tutorials mainly. You might want to have a look at Apache MyFaces.

对于业务逻辑,我猜标准是 Enterprise JavaBeans (EJB).我喜欢掌握企业JavaBeans 3.0.TheServerSide.com 可免费获得该书的旧版本.您应该避免使用早于 3.0 的 EJB 版本,因为它们是 PITA!

For the business logik, I guess the standard is Enterprise JavaBeans (EJB). I liked Mastering Enterprise JavaBeans 3.0. An older version of the book is available for free at TheServerSide.com. You should avoid EJB versions older than 3.0, because they are a PITA!

EJB 3.0 规范的一个单独部分是 Java Persistence API 1.0(参见,例如,Apache OpenJPA 虽然文档不完整).其他支持 JPA 的框架有,例如 Spring 或 JPOX(现在称为 DataNucleus).

A separate part of the EJB 3.0 specification is the Java Persistence API 1.0 (see, e.g., Apache OpenJPA though the documentation is patchy). Other frameworks that support JPA are, e.g., Spring or JPOX (now being called DataNucleus).

最后,如果你想要一个应用服务器进行测试,还有 JBoss by RedHat, SUN 的 GlassfishApache Geronimo(我更喜欢最后一个,但您可能已经注意到我对 Apache 项目的偏好;-))

Finally, if you want an application server for testing, there are JBoss by RedHat, SUN's Glassfish and Apache Geronimo (I preferred the last one, but you may have noticed my preference for Apache projects already ;-))

祝你好运!

这篇关于如何开始使用 Java 构建 Web 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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