登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 外文翻译 > 电子信息类 > 信息工程 > 正文

学习java的web开发(2014)外文翻译资料

 2022-10-23 10:10  

外文原文

Learn Java for Web Development(2014)

Autor:Vishal Layka

Introduction

This book is for a large cross section of modern Java web developers, with various levels of experience.

Learning the Java programming language is a noble cause, but learning merely the Java language is not enough in the real world. Java developers have to learn Java EE, a collection of related server-side technologies, to put their Java skills to any real use.

But learning Java EE is not enough either. The Java language along with Java EE may suffice to develop web applications for projects in the same organization, as a means to reusability, but the diverse landscape of Java on the Web is permeated with several web frameworks, such as Spring Web MVC, that make development much easier; thus, a Java web developer has to have the knowledge of these web frameworks.

But this is not enough still. In the very first line of this introduction, I mentioned that this book is for a modern Java web developer. Modern Java is more than just a language; it is now a fully optimized platform because several other languages such as Groovy and Scala, called the JVM languages, now run on the Java Virtual Machine (JVM). All such JVM languages, especially Groovy, have a close association with Java, and you will come across web applications before long where Java and these other JVM languages work in tandem. The most ambitious projects will require you to build web applications using these JVM languages.

This book addresses all the needs of a modern Java web developer. It is designed for beginners up to intermediate developers and explains the specifics of Java on the Web. For example, this book is perfect for developers who are aware of technologies like MVC but do not yet understand how and why they have changed the way web applications are built.

This book is also for developers who want to learn frameworks other than JSF 2 (which is bundled with Java EE). This book covers four types of web frameworks: request based, component based, rapid, and reactive. Among these four types, the book covers five proven web frameworks: Struts 2, Spring Web MVC, JSF 2, Grails 2, and Play 2.

In addition, this book is for developers who have no experience in the Java, Groovy, and Scala programming languages but who yearn to create web applications. This book provides the essentials of these three languages in the appendixes.

Instead of simply pronouncing one web framework the best, Learn Java for Web Development shows the strengths of the most popular web frameworks by means of a real-world bookstore application. Developing a complete real application necessitates a seamless collaboration of dynamic functionalities, and the code for building such components is contrived and too involved. Instead of focusing on developing such moving parts, this book confines its attention on leveraging the strengths of each web framework.

How the Book Is Structured

The book consists of eight chapters, which Irsquo;ll describe next, plus the three previously mentioned appendixes that introduce the Java, Groovy, and Scala languages.

Chapter 1: Introducing Java Web Development

Chapter 1 explains the main objective that shapes this book and highlights what appears in the subsequent chapters. This chapter begins with a discussion of a significant change in the Java landscape, its implication, and what Java exactly means today. The chapter then discusses the three key players that join forces in building modern Java web applications: the JVM languages, Java EE, and the Java web frameworks. This chapter introduces the key features of a modern Java web application such as Ajax and REST, WebSocket for real-time web application, the Typesafe stack for a reactive web application, and client-side MVC frameworks for responsive and single-page web applications. Finally, the chapter introduces some important aspects of modern web development that are beyond the scope of this book, such as Java information retrieval on the Web, and briefly introduces the central component of Web 3.0, which is still an open subject of research, the Semantic Web.

Chapter 2: Building Web Applications Using Servlets and JSP

Chapter 2 begins with a discussion of the evolution and architecture of web applications. The chapter then highlights how to use the standard web API. The first pass at the sample application uses only servlets and JSP. Then the chapter shows you how to build the same application as a Model 2 application.

Chapter 3: Best Practices in Java EE Web Development

Chapter 3 examines the chain of causality that leads to the need for following best practices. The chapter explains the need to evolve projects and introduces Expression Language and JSTL. The chapter then discusses the Java EE web tier patterns.

Chapter 4: Building a Web Application Using Struts 2

In Chapter 4, yoursquo;ll learn about Struts 2. Not as popular as it used to be, Struts 2 is introduced in this book for developers who have to maintain legacy applications. This chapter first introduces the key architectural components of Struts 2. Then you will learn to develop your first application using Struts 2 and Maven 4. Moving forward, you will learn to develop the bookstore application and integrate with Tiles 3.

Chapter 5: Building Java Web Applications with Spring Web MVC

Chapter 5 explains three key objectives of the Spring Framework: loose coupling using dependency injection, dealing with cross-cutting concerns using AOP, and removing boilerplate code using Spring templates. Elucidating how Spring 3 works, the chapter introduces the Spring Web MVC architecture. Then you will learn to build your first web applic

剩余内容已隐藏,支付完成后下载完整资料


外文翻译

学习java的web开发(2014)

著者:Vishal Layka

引言

这本书是为现代的Java Web开发的大型横截面,不同层次的体验。

学习Java编程语言是一项崇高的事业,但学习仅仅是Java语言是不够的在现实世界中。 Java开发者学习Java EE,相关的服务器端技术的集合,把自己的Java技能的实际使用。

但学习Java EE也是不够的。Java语言和Java EE项目可能足以开发web应用程序在相同的组织,作为一个可重用性,也包括Java的Web上的多样化的景观渗透着几个Web框架,如Spring Web MVC框架,使开发变得更加容易;因此,一个Java Web开发人员必须拥有这些Web框架的知识。

但这仍然是不够的。 在此介绍的第一行中,我提到这本书是现代Java Web开发。现代Java不仅仅是一种语言它现在是一个完全优化的平台,因为一些其他语言如Groovy和Scala,现在称为JVM语言,在Java虚拟机(JVM)上运行。 所有这些JVM语言,尤其是Groovy与Java有密切联系,不久你会遇到Java和其他JVM语言串联工作的web应用程序。最雄心勃勃的项目将需要使用这些JVM语言构建web应用程序。

这本书涉及现代Java Web开发的所有需求。它是专为初学者到中级开发人员并解释Java Web上的细节。例如,这本书很适合开发人员意识到技术像MVC,但尚不清楚如何以及为什么他们改变了构建web应用程序的方式。

这本书也是为了想要了解比JSF 2(这是与Java EE捆绑)等框架的开发者。这本书涵盖了四个类型的web框架:基于请求的,基于组件的,快速和无功。在这四种类型,这本书包括五个成熟的Web框架:Struts 2,Spring web MVC,JSF 2,Grails 2,Play 2。

此外,这本书是为了在Java开发中没有经验,Groovy和Scala编程语言,但他们渴望创建web应用程序的开发人员使用。这本书提供了在附录中这三种语言的基本要素。

I而不是简单地宣告Web框架都最好,学习Java web开发通过一个真实的书店应用程序展示了最流行的web框架的优势。开发一个完整真实的应用程序需要一个无缝协作的动态功能,为建设等组件的代码是做作,太复杂。相反,本书专注于发展这样的移动部件,这本书限制其关注利用每个web框架的优势。

这本书的结构如何

全书共分八章,我将描述下,再加上前面提到的三个附录介绍了Java,Groovy,Scala语言。

第1章:介绍Java Web开发

第一章解释了这本书的主要目标形状和将出现在后面章节的亮点。本章开始讨论Java环境的重大变化,其含义,现在Java到底意味着什么。然后讨论的三个关键球员加入部队在构建现代Java web应用程序:JVM语言,Java EE和Java web框架。本章将介绍现代化的Java Web应用程序的关键功能,如Ajax和休息,WebSocket实时web应用程序中,反应的类型安全堆栈的web应用程序,客户端响应MVC框架和单页面的web应用程序。最后,本章介绍了超出了本书的范围现代Web开发的一些重要方面,例如在Web上的Java信息检索,并简要介绍了Web 3.0的的核心组成部分,这仍然是研究的一个开放的主题,语义Web。

第二章:使用servlet和JSP构建Web应用程序

第2章开始于Web应用程序的进化和结构的讨论。然后,本章重点介绍如何使用标准的Web API。在示例应用程序第一遍只使用servlet和JSP。然后,本章将介绍如何构建相同的应用程序作为一个模型2的应用程序。

第三章:在Java EE Web开发的最佳实践

第三章探讨了导致遵循最佳实践的必要性的因果关系链。本章介绍了需要发展的项目,并介绍了表达式语言和JSTL。这一章讨论了Java EE web层模式。

第4章:使用Struts2构建Web应用程序

在第四章中,您将了解Struts 2。Struts 2不像以前一样受欢迎,这本书介绍的Struts2是为了必须保持原有应用程序的开发。本章首先介绍了Struts 2的关键体系结构组件。然后你将学会使用Struts 2和Maven 4开发您的第一个应用程序。向前迈进,你将学会用Tiles3开发书店应用程序。

第5章:构建Java Web应用程序与Spring Web MVC框架

第5章解释了Spring框架的三个主要目标:使用依赖注入的松散耦合,使用AOP处理横切关注点,使用Spring模板删除样板代码。阐明Spring 3是如何工作的,这一章介绍了Spring Web MVC架构。然后你将学会使用Spring 3构建第一个web MVC web应用程序。本章还介绍了如何构建书店应用程序。您将学习如何使用最新版本的SpringSource工具套件。

第六章:使用JSF基于组件的Web开发

第六章向您介绍一个叫JSF 2的基于组件的框架,与Java EE捆绑。在你熟悉了在第四章和第五章提出的request-based框架之后,理解JSF 2将会容易得多。本章介绍了JSF 2如何代表Web开发模式的转变,并为您介绍到JSF2架构的关键组成部分。牢固地掌握了架构组件之后,本章向您介绍了如何开发你的第一个JSF 2应用程序,与此同时您将学习JSF 2应用程序的生命周期阶段。然后告诉您如何集成JSF 2与Spring框架,这样就可以通过Spring的模板从JSF2 web层访问数据库。最后,本章将介绍如何开发书店应用程序。

第7章:使用Grails快速Web开发

Grails是一个快速应用程序开发框架,它可以让你在最短的时间创建Web应用程序。第7章介绍了产生用Grails的Web应用程序的两种技术:静态和动态基架。然后本章带你穿越生成的代码,并解释了一步一步的代码是如何工作的。已经提出生成的代码,本章介绍如何使用Grails2开发书店应用。本章还介绍了单元测试,应用程序开发一个经常被忽视的任务。本章介绍了如何建立使用JUnit测试框架的Web应用程序的测试。然后这一章告诉您如何使用内存数据库H2。在本章中,您还将学习使用最新版本的Groovy-Grails工具套件。

第8章:用Java和Scala的Play

第8章介绍了类型安全堆栈的关键网络播放器,即Play 2框架。并解释了类型安全堆栈如何提供一种替代Java EE的构建基于Scala的Java的应用。首先,你将学习如何开发使用Play 2。然后您将学习如何使用Play 2开发。随后,这一章展示了如何使用模型和Play 2中访问数据库。

第一章

引入Java Web开发

心智,一旦被一个新的想法拉伸,就不会再回到原来的尺寸。 —Ralph Waldo Emerson

智能机是拓展了由它建立的极具想象的空间。这样的一个例子是所谓invokeDynamic指令,将其由Java7引入,在Java虚拟机(JVM)以优化动态语言的性能。JVM中,原本打算用于Java,现在可以托管编程语言,包括Groovy和Scala。这导致了Java Web开发的复兴。这个新的范式的异花授粉和多样化,有根据的选择雕刻出许多利基市场在Java生态系统,导致比以往更丰富的web格局。

开源社区已经利用了由运行在JVM上,通过web框架手段的语言所提供的多范型能力,极大地提高Web开发效率。Java EE先进这一势头,首创Java框架如Spring,通过标准化和改进API和运行时环境。此外,功能性编程结构,在lambda表达式的形式,都被加入到Java8。结果,Java是在反弹成为uuml;bersolution。

本章为这本书设置阶段通过引入三个关键球员建设现代Java Web应用程序:JVM语言,Java EE和Java web框架。

本章首先介绍了JVM的语言,然后介绍Java EE。Java EE平台的API规范集作为开发web应用程序的构建块。然后,章强调了Java的Web框架,这将是本书第4章以后的主题。

注释 VM语言代表的在JVM上运行的语言新的类别。最新的版本,java 8,不再是一个享有优越的JVM语言和现在是一个简单的运行在JVM的语言。

JVM语言

JVM是运行环境,为您提供使用不同的编程语言构建Web应用程序的能力。JVM语言大体上可分为两种类型:即是专为JVM语言和现有语言被移植到JVM。

为JVM设计的语言

很多语言是专门为JVM设计的;表1-1介绍了其中的几个。除了Clojure以外都在这本书中讨论。

下面是一些重要的定义:

·动态类型: 动态类型跟踪信息关于何种值的变量包含由携带在变量保持的值的类型的信息。

·静态类型:在静态类型,该类型信息是所有的变量,而不是他们的值。

·命令式语言:这是一种语言,在这种语言中,在语言中的指令可以变异。

·功能语言: 功能性语言,功能操作值作为程序语言,而是变异的状态,功能是纯粹的数学函数,返回值。

图1-1显示了在java 8,Groovy,Scala和Clojure,落在功能性语言连续体。 Java 8引入lambda表达式, 使其略功能,Groovy有功能的构造,自成立以来,更是功能与Groovy 2,Scala是最实用的三面向对象(OO)的语言。Clojure,另一方面,是一个纯粹的功能,非面向对象的语言。

注释 在图1-1中,没有提到Groovy,Scala和Clojure的版本号,因为Java支持功能的编程方面从Java8才刚刚开始。

移植到JVM的语言

JRuby,Jython,和Rhino都是现有语言的主流JVM的实现。在表1-2中描述。

这本书是基于JVM的一些主流的面向对象语言,专门为JVM,即Java,Groovy,Scala。

Java EE

java编程语言设计开始作为一个独立的应用程序和建设迅速成长为其他领域。java的普及很大一部分可以归因于创建Web应用程序及使用。一个网页应用程序包含静态和动态(交互式)网页。静态网页包含各种标记语言(HTML,XHTML,等等)和使用,总的来说,提供信息;动态网页,另一方面,能够产生额外的Web组件的帮助内容(包括在2章)。因此,一个网络应用程序是一个网页的集合,是能够生成动态内容的响应请求。不像一个网页只提供信息,一个网络应用程序让你执行一些活动,并保存结果。然而,开发一个网络应用程序,从根本上不同于构建独立的应用程序,需要你理解以下三个关键要素:

Java EE平台:这是一套API规范,是Web应用程序的构建块。

Web容器:Web容器实现Java EE平台的API规范。具体来说,管理和执行的web容器提供服务web组件(如servlet、jsp、过滤器、监听器,呈现响应给客户端。web容器都包含在第二章。

注释 有几种类型的容器,而是这本书将主要集中用于Web应用程序的Web容器上。你必须根据你想要开发的应用程序来选择容器。

Web部件:这些都是由容器承载。这些Web组件,如Servlet,JSP页面,过滤器和监听器,第2章涵盖了这些内容。

Java EE平台

java EE平台由以下两目标驱动:提供应用程序的规范,是网络应用程序的构建块。

规范和降低企业应用开发的复杂性。它通过提供一个应用模型,定义了实现服务的多层应用体系结构。

图1-2总结的Java EE的发展,并为简洁起见,只显示在每个版本中添加的新规格。

注释 修剪(也称为标记为删除)由一个的建议的功能列表删除在未来的Java EE版本可能为了减少平台的大小或防止腹胀。

Web 配置的目标是让开发人员能够用合适的一套技术创建Web应用程序。

Java EE平台旨在规范和通过提供定义实现服务为多层应用程序的架构一种应用模式降低了企业应用开发的复杂性。在一个多层应用程序,该应用程序的功能被分离成不同的功能区,称为层。图1-3显示了在Java EE应用模型典型的多层体系结构。

客户层(Tier)

客户层是一个多层的Java EE架构的顶层;它由应用程序客户端发出请求到Java EE服务器,它通常位于不同的机器上。服务器处理请求并返回响应给客户机。客户机的一个例子是网络浏览器或一个独立

剩余内容已隐藏,支付完成后下载完整资料


资料编号:[152661],资料为PDF文档或Word文档,PDF文档可免费转换为Word

您需要先支付 30元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图