Apache Struts 2 Web Application Development (Paperback)
暫譯: Apache Struts 2 網頁應用程式開發 (平裝本)

Dave Newton

買這商品的人也買了...

相關主題

商品描述

A beginner's guide for Java developers
  • Design, develop, test, and deploy your web applications using Struts 2 framework
  • No prior knowledge of JavaScript and CSS is required
  • Apply the best of agile development techniques and TDD techniques
  • Step-by-step instructions and careful explanations with lots of code examples

In Detail

Struts 2.1 is a modern, extensible, agile web application framework suitable for both small- and large-scale web applications.

The book begins with a comprehensive look at Struts 2.1 basics, interspersed with detours into more advanced development topics. You'll learn about configuring Struts 2.1 actions, results, and interceptors via both XML and Java annotations. You'll get an introduction to most of the Struts 2.1 custom tags and learn how they can assist in rapid application prototyping and development.

From there you'll make your way into Struts 2.1's strong support for form validation and type conversion, which allows you to treat your form values as domain objects without cluttering your code. A look at Struts 2.1's interceptors is the final piece of the Struts 2.1 puzzle, allowing you to leverage the standard Struts 2 interceptors as well as implement your own custom behavior.

After covering Struts 2.1 you'll journey into the world of JavaScript, a surprisingly capable language, the Document Object Model (DOM), and CSS, and learn how to create clean and concise client-side behavior. You'll leverage that knowledge as you move on to Struts 2 themes and templates, which give you a powerful way to encapsulate site-wide user interface behavior.

The book closes with a look at some tools that make the application development life cycle easier to manage, particularly in a team environment, and more automatic.

What you will learn from this book?

  • Explore the features of Struts 2.1 to develop your application
  • Enhance your web application by writing your own custom result type
  • Create your own type converter to handle custom data types
  • Automatically generate application and development documentation
  • Learn good exception handling practices for your applications
  • Implement rich client behavior using JavaScript, the DOM, and CSS
  • Create custom themes and templates to make shorter, cleaner JSP pages
  • Run many types of tests both to prove functionality and to make change safe

Approach

This book takes a clear approach, focusing on one topic per chapter, but interspersing other issues in the mainline text and in chapter detours. Taking a practical approach, it discusses agile web development using Struts 2, with plenty of examples for better understanding.

Who this book is written for?

This book is for Java developers who are interested in developing web applications using Struts. If you need a comprehensive introduction to Struts 2.1, along with the most important aspects of additional web application development technologies, agile programming practices, tool creation, and application life cycle management this book is for you. You don't need to know JavaScript and CSS to use this book as the author will teach you the required basics.

If you are a Struts 1 or WebWork user and wish to go ahead and migrate to Struts 2, this practical guide is also for you.

商品描述(中文翻譯)

初學者的 Java 開發者指南

- 使用 Struts 2 框架設計、開發、測試和部署您的網頁應用程式
- 不需要具備 JavaScript 和 CSS 的先前知識
- 應用最佳的敏捷開發技術和測試驅動開發(TDD)技術
- 提供逐步指導和詳細解釋,並附有大量程式碼範例

詳細內容

Struts 2.1 是一個現代化、可擴展的敏捷網頁應用程式框架,適用於小型和大型網頁應用程式。

本書首先全面介紹 Struts 2.1 的基本概念,並穿插更高級的開發主題。您將學習如何通過 XML 和 Java 註解來配置 Struts 2.1 的動作、結果和攔截器。您將獲得對大多數 Struts 2.1 自訂標籤的介紹,並了解它們如何協助快速應用程式原型設計和開發。

接下來,您將深入了解 Struts 2.1 對表單驗證和類型轉換的強大支持,這使您能夠將表單值視為領域物件,而不會使您的程式碼變得雜亂。對 Struts 2.1 攔截器的探討是 Struts 2.1 拼圖的最後一塊,讓您能夠利用標準的 Struts 2 攔截器,並實現自訂行為。

在涵蓋 Struts 2.1 之後,您將進入 JavaScript 的世界,這是一種出乎意料的強大語言,還有文檔物件模型(DOM)和 CSS,並學習如何創建乾淨且簡潔的客戶端行為。您將利用這些知識進一步了解 Struts 2 主題和模板,這為您提供了一種強大的方式來封裝全站的用戶界面行為。

本書最後將介紹一些工具,這些工具使應用程式開發生命週期更易於管理,特別是在團隊環境中,並且更具自動化。

您將從本書中學到什麼?

- 探索 Struts 2.1 的功能以開發您的應用程式
- 通過編寫自訂結果類型來增強您的網頁應用程式
- 創建自己的類型轉換器以處理自訂數據類型
- 自動生成應用程式和開發文檔
- 學習良好的異常處理實踐以應用於您的應用程式
- 使用 JavaScript、DOM 和 CSS 實現豐富的客戶端行為
- 創建自訂主題和模板,以使 JSP 頁面更短、更乾淨
- 執行多種類型的測試,以證明功能並確保變更的安全性

方法

本書採取清晰的方法,每章專注於一個主題,但在主線文本和章節的旁支中穿插其他問題。採用實用的方法,討論使用 Struts 2 的敏捷網頁開發,並提供大量範例以便更好地理解。

本書的讀者對象

本書適合對使用 Struts 開發網頁應用程式感興趣的 Java 開發者。如果您需要全面介紹 Struts 2.1,以及其他網頁應用程式開發技術、敏捷編程實踐、工具創建和應用程式生命週期管理的最重要方面,本書將非常適合您。您不需要了解 JavaScript 和 CSS,因為作者將教您所需的基本知識。

如果您是 Struts 1 或 WebWork 的使用者,並希望繼續遷移到 Struts 2,這本實用指南也適合您。