Contents

About the Author

About the Technical Reviewer

Introduction

images Chapter 1: Introducing Java Web Development

JVM Languages

Languages Designed for the JVM

Languages Ported to the JVM

Java EE

The Java EE Platform

The Client Tier

The Web Tier

Java Web Frameworks

Getting Started with Java

Setting Up the Development Environment

Creating and Running Your First Java Application

Running Your Java Application

Developing Java Applications with an IDE

The Bookstore Application

Data Model for the Bookstore Application

Data Access Layer for the Bookstore Application

Client for the Data Access Layer

Trends and Technologies in the Java Web Landscape

Responsive Web Applications

Single-Page Web Application (SPA)

Real-Time Web Application

Reactive Web Application

Mashups and Web Services

Semantic Web (Web 3.0)

Summary

images Chapter 2: Building Web Applications Using Servlets and JSP

Servlets

Your First Web Application Using a Servlet

ServletContext and ServletConfig

RequestDispatcher

Filters

Configuring Servlet via Annotations

Java Server Pages

Your First Web Application Using JSP

JSP Basics

The MVC Pattern

Bookstore Application

Home Page

Listing All the Books

Searching the Books by Category

Searching the Books by Keyword

Summary

images Chapter 3: Best Practices in Java EE Web Development

Best-Practice Solutions: Using EL and JSTL

Expression Language

JSTL

Best-Practice Solutions: Using Patterns

Intercepting Filter

Front Controller

View Helper

Composite View

Dispatcher View

Service to Worker

Java Web Frameworks

Why Use a Framework?

Summary

images Chapter 4: Building a Web Application Using Struts 2

Struts 2 Framework Overview

Action

Action Interface

ActionSupport Class

Interceptors

ValueStack and OGNL

ResultType and Result

Struts 2 Tags

Getting Started with Struts 2

Bookstore Web Application

The Login Functionality

Developing Templates

Integrating the Data Access Layer

Summary

images Chapter 5: Building Java Web Applications with Spring Web MVC

Spring Framework Overview

AOP and Instrumentation

Core Container

Data Access/Integration

Test

Web

Spring Framework Fundamentals

Application Context

Key Objectives of the Spring Framework

Dealing with Tight Coupling Using Dependency Injection

Addressing Cross-Cutting Concerns Using AOP

Removing Boilerplate Code Using Templates

Building Web Application with Spring Web MVC

Spring Web MVC Architecture

Getting Started with a Spring Web MVC Application

Implementing Spring Web MVC in the Bookstore Application

Working with Forms Using Annotations

Annotations-Based Validation

Summary

images Chapter 6: Component-Based Web Development Using JSF 2

The Architecture of JSF

FacesServlet

Managed Bean

VDL

JSF EL

JSF Tag Library

UI Component

Renderer

Converter and Validator

Events and Event Listeners

Getting Started with JSF

Life Cycle of a JSF Application

Phase 1: Restore View

Phase 2: Apply Request Values

Phase 3: Process Validation

Phase 4: Update Model

Phase 5: Invoke Application

Phase 6: Render Response

Managed Beans

Facelets

Templating with Facelets

Building the Bookstore Application Using JSF 2

Integrating JSF with Spring Framework

Accessing a Database from the Web Layer via Spring JDBCTemplate

Developing Templates

Developing the User Interface Using UI Components and JSF EL

Summary

images Chapter 7: Rapid Web Development with Grails

Grails Features

Convention over Configuration

Scaffolding

Object-Relational Mapping

Plug-Ins

Unit Testing

Integrated Open Source

Installing Grails

Hello World Application

Bookstore Application

Creating the Bookstore Application

Running the Application

Creating the Controller

Testing the Controller

Creating a Domain Class

Scaffolding

Dynamic Scaffolding

Static Scaffolding

H2 Console

Creating Domain Relationships

Summary

images Chapter 8: Play with Java and Scala

Features of Play 2

MVC in Play 2

Router

Controller

Model

View

Getting Started with Play

Hello World Java Application with Play

Helloworld Scala Application with Play 2

A Basic CRUD Play 2 Java Application

Defining the Routes

Creating the Controller and Actions

Creating the Model

The Form and the View Template

Accessing the Database

Deleting Books

Summary

images Appendix A: Introduction to Java

Classes and Objects

Variables

Instance Members

Static Members

Method Overloading

Arrays

Constructors

Encapsulation

Inheritance

Constructor Chaining

Polymorphism

Summary

images Appendix B: Introduction to Groovy

Getting Started

GroovyShell

GroovyConsole

GStrings

Single-Line Strings

Multiline Strings

Slashy Strings

Multiline Slashy Strings

Dollar Slashy Strings

Collective Datatypes

Arrays

Lists

Maps

Ranges

Sets

Methods

Closures

Understanding Closures

Implicit Variables

Explicit Declaration of Closure

Reusing the Method as a Closure

Passing a Closure as a Parameter

Specialized Operators

Spread Operator

Elvis Operator

Safe Navigation/Dereference Operator

Field Operator

Method Closure Operator

Diamond Operator

Summary

images Appendix C: Introduction to Scala

Getting Started with Scala

Using the Interactive Interpreter

Executing Scala Code as a Script

Compiling Scala Code

Variables

Collections

Lists

Sets

Maps

Classes

Extending a Class

Traits

Singleton Objects

Summary

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.104.27