Mastering Apache Velocity
暫譯: 精通 Apache Velocity

Jim Cole, Joseph D. Gradecki

  • 出版商: Wiley
  • 出版日期: 2003-07-16
  • 售價: $1,440
  • 貴賓價: 9.5$1,368
  • 語言: 英文
  • 頁數: 372
  • 裝訂: Paperback
  • ISBN: 0471457949
  • ISBN-13: 9780471457947
  • 相關分類: Java 相關技術
  • 已過版

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

相關主題

商品描述

A comprehensive tutorial on how to use the power of Velocity 1.3 to build Web sites and generate content

Designed to work hand-in-hand with Apache Turbine, Struts, and servlets, Velocity is a powerful template language that greatly enhances the developer’s ability to customize Web sites. It separates Java code from the Web pages, making a site more maintainable. Because of this, it is a viable alternative to JSPs and PHP and is expected to become the standard template engine. In addition to its use with Struts and Turbine, Velocity can also be used to generate Java and XML source code, XML schemas, HTML templates, and SQL code.

Even with all its promise, finding expert instructions on how to properly program with this language has been difficult. This code-intensive tutorial gives you all the tools you’ll need.

It begins by quickly bringing you up to speed on all of the Velocity fundamentals and the Velocity Template Language. You’ll then learn how to apply Velocity in a variety of areas with the help of richly detailed code examples. Additionally, you’ll be taken through the steps of building a complete application in order to see how you can utilize all of the techniques and technologies discussed in the book. Covering the latest features of Velocity 1.3, Mastering Apache Velocity shows you how to:

  • Build Java-based Web sites with Struts, servlets, Turbine, and other open-source tools
  • Generate a wide variety of Web content and code, including Java, XML, SQL, and Postgres

Table of Contents

About the Authors.

Introduction.

Part I: Introduction to Velocity and MVC.

Chapter 1: Web Development Basics.

Chapter 2: MVC Fundamentals.

Chapter 3: Introduction to Velocity.

Part II: Velocity Basics.

Chapter 4: Installing Velocity.

Chapter 5: Building a Hello World Example.

Chapter 6: Understanding Templates and Context.

Chapter 7: Exploring References.

Chapter 8: Using Directives.

Chapter 9: Introducing Velocimacros.

Chapter 10: Taking Control of Velocity.

Part III: Developing with Velocity.

Chapter 11: Velocity, XML, and Anakia.

Chapter 12: Using Velocity with Servlets.

Chapter 13: Velocity and Internationalization.

Chapter 14: Using Velocity and Turbine.

Chapter 15: Using Velocity and Maverick.

Chapter 16: Velocity IDEs.

Chapter 17: Using Velocity and Struts.

Chapter 18: The Hotel Reservation Velocity Application.

Chapter 19: Using JSP and Velocity.

Chapter 20: DVSL and Velocity.

Part IV: References.

Appendix A: The Velocity Specification.

Appendix B: Velocity Sites.

Index.

商品描述(中文翻譯)

一個全面的教程,教你如何利用 Velocity 1.3 的強大功能來建立網站和生成內容。

Velocity 設計上與 Apache Turbine、Struts 和 servlets 緊密合作,是一種強大的模板語言,極大地增強了開發者自訂網站的能力。它將 Java 代碼與網頁分離,使網站更易於維護。因此,它成為 JSP 和 PHP 的可行替代方案,並預期將成為標準模板引擎。除了與 Struts 和 Turbine 一起使用外,Velocity 還可以用來生成 Java 和 XML 源代碼、XML 架構、HTML 模板和 SQL 代碼。

儘管有這麼多的潛力,但找到專家指導如何正確使用這種語言進行編程一直很困難。這本以代碼為重點的教程提供了你所需的所有工具。

它首先快速讓你了解所有 Velocity 的基本概念和 Velocity 模板語言。接著,你將學習如何在各種領域中應用 Velocity,並通過豐富詳細的代碼範例來輔助學習。此外,你將通過構建一個完整的應用程序的步驟,來了解如何利用書中討論的所有技術和技術。涵蓋 Velocity 1.3 的最新功能,《Mastering Apache Velocity》將教你如何:


  • 使用 Struts、servlets、Turbine 和其他開源工具構建基於 Java 的網站

  • 生成各種網站內容和代碼,包括 Java、XML、SQL 和 Postgres


目錄


關於作者。


導言。

第一部分:Velocity 和 MVC 介紹。

第 1 章:網頁開發基礎。

第 2 章:MVC 基礎。

第 3 章:Velocity 介紹。

第二部分:Velocity 基礎。

第 4 章:安裝 Velocity。

第 5 章:構建 Hello World 範例。

第 6 章:理解模板和上下文。

第 7 章:探索引用。

第 8 章:使用指令。

第 9 章:介紹 Velocimacros。

第 10 章:掌控 Velocity。

第三部分:使用 Velocity 開發。

第 11 章:Velocity、XML 和 Anakia。

第 12 章:與 servlets 一起使用 Velocity。

第 13 章:Velocity 和國際化。

第 14 章:使用 Velocity 和 Turbine。

第 15 章:使用 Velocity 和 Maverick。

第 16 章:Velocity IDE。

第 17 章:使用 Velocity 和 Struts。

第 18 章:酒店預訂 Velocity 應用程序。

第 19 章:使用 JSP 和 Velocity。

第 20 章:DVSL 和 Velocity。

第四部分:參考資料。

附錄 A:Velocity 規範。

附錄 B:Velocity 網站。

索引。