We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
您可能想从学习 Servlet 和 JSP 的基础知识开始。这些是 Web 应用程序框架的构建块。
除了了解 Servlet 一般如何工作之外,我不会在 Servlet 上花费太多时间。如今,大部分繁重的工作都是由 Web 应用程序框架完成的。
一旦您熟悉了 Java 如何将内容作为网页提供服务的基础知识,就可以继续学习更复杂的框架,例如 JSF、Spring Web MVC 或 Struts。这些框架都利用了 MVC 设计模式,您可能已经在 PHP 框架中使用过该模式(如果没有,这是一个非常值得学习的原则)。所有这些项目都有详细的文档记录并拥有相当大的社区。
需要说明的是,我认为 JSF 的学习曲线比 Spring 或 Struts 更陡峭。如果您对 JSF 感兴趣,我建议您研究一下 Seam 框架,它利用了 JSF,但也在一定程度上简化了其使用。您可以同时学习JSF+Seam。
至于书籍……对于 JSF,我喜欢Core JavaServer Faces。对于 Spring,我喜欢Spring in Action。
You might want to start off by learning the basics of Servlets and JSP. Those are the building blocks for web application frameworks.
I wouldn't spend too much time on Servlets beyond an understanding of how they generally work. Most of the heavy lifting is done by web app frameworks these days.
Once you're familiar with the basics of how Java serves things up as a web page, move on to more sophisticated frameworks such as JSF, Spring Web MVC or Struts. These frameworks all utilize the MVC design pattern, which you may have used with PHP frameworks (if not, it's a very good principle to learn). All of those projects are well-documented and have a sizable community.
As a note, I feel that JSF has a steeper learning curve than either Spring or Struts. If you are that interested in JSF, I recommend looking into the Seam framework, which utilizes JSF but also somewhat simplifies its use. You can learn JSF+Seam concurrently.
As for books... for JSF, I like Core JavaServer Faces. For Spring, I like Spring in Action.
我会向您推荐《Head First Servlet and JSP》这本精彩的书,让您非常完美地了解 JSP 和 Servlet,并掌握服务器端知识。
Head First Servlet 和 JSP
I would recommend you Head first Servlet and JSP this fantastic book gives you kick start for JSP and Servlet with the Server side knowledge very perfectly.
Head First Servlets and JSP