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

查看:106
本文介绍了如何开始使用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?

推荐答案

我认为,你只是网络应用的新手而不是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(参见,例如,< a href =http://openjpa.apache.org/ =noreferrertitle =Apache OpenJPA> 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 ;-))

祝你好运!

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

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