且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何开始使用Java构建Web应用程序?

更新时间:2023-02-16 15:16:44

我认为,你只是网络应用的新手而不是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)。我喜欢掌握Enterprise 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).

最后,如果你想要一个应用程序服务器进行测试,有 RedHat的JBoss SUN的Glassfish Apache 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 ;-))

祝你好运!