Jakarta Struts Pocket Reference
暫譯: Jakarta Struts 口袋參考指南

Chuck Cavaness, Brian Keeton

  • 出版商: O'Reilly
  • 售價: $810
  • 貴賓價: 9.5$770
  • 語言: 英文
  • 頁數: 144
  • 裝訂: Paperback
  • ISBN: 0596005199
  • ISBN-13: 9780596005191
  • 已過版

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

商品描述

The Jakarta Struts Pocket Reference gives you an inside track on getting Struts installed, configured, and running smoothly in your enterprise. This book, an essential companion to O'Reilly's Programming Jakarta Struts, provides detailed coverage of every Struts JSP tag, the Struts configuration files and directives, built-in actions, and a wealth of other resources.

Table of Contents

Introduction

Part I. Configuring Struts


     Configuring web.xml
            Configuring the Struts ActionServlet
            Declaring Initialization Parameters
            Using the load-on-startup Setting
            Setting Up the Welcome File List
            Configuring the Tag Libraries
     The Struts Configuration Files
            Using Multiple Struts Configuration Files
            The data-sources Element
            The form-beans Element
            The global-exceptions Element
            The global-forwards Element
            The action-mappings Element
            The controller Element
            The message-resources Element
            The plug-in Element

Part II. Using Struts ActionForms


     What Are ActionForms?
     ActionForms and Scope
     The Life Cycle of an ActionForm
     Creating an ActionForm
            The validate( ) Method
            The ActionForm reset( ) Method
     Declaring ActionForms in the Struts Configuration File
     Using an ActionForm
     The DynaActionForm Class
     Configuring Dynamic ActionForms
     DynaActionForm and Validation
            Creating the validation.xml File
            Plugging in the Validator

Part III. Built-in Action Classes


     DispatchAction
     ForwardAction
     IncludeAction
     LookupDispatchAction
     SwitchAction

Part IV. Tag Reference


     Conventions
     Common Tag Attributes
     Using JavaBeans with Struts Tags
            Accessing Simple Properties
            Accessing Nested Properties
            Accessing Indexed Properties
     Bean Tags
            cookie
            define
            header
            include
            message
            page
            parameter
            resource
            size
            struts
            write
     HTML Tags
            Common HTML Attributes
            JavaScript Event Handlers
            HTML Tag Descriptions
     Logic Tags
            Value Comparison
            Empty Value Check
            Value Present Check
            Substring Matching
            Messages Check
            Application Flow Management
            Collection Utilities
     Nested Tags
            Root Tags
            Nested Parent Tags
            Child Tags
     Tiles Tags
            add
            definition
            ge

商品描述(中文翻譯)

《Jakarta Struts 口袋參考手冊》為您提供了在企業中安裝、配置和順利運行 Struts 的內部資訊。本書是 O'Reilly 的《Programming Jakarta Struts》的重要伴侶,詳細介紹了每個 Struts JSP 標籤、Struts 配置文件和指令、內建動作以及其他豐富的資源。

目錄

引言

第一部分:配置 Struts
- 配置 web.xml
- 配置 Struts ActionServlet
- 聲明初始化參數
- 使用 load-on-startup 設定
- 設定歡迎文件列表
- 配置標籤庫

Struts 配置文件
- 使用多個 Struts 配置文件
- data-sources 元素
- form-beans 元素
- global-exceptions 元素
- global-forwards 元素
- action-mappings 元素
- controller 元素
- message-resources 元素
- plug-in 元素

第二部分:使用 Struts ActionForms
- ActionForms 是什麼?
- ActionForms 和範圍
- ActionForm 的生命週期
- 創建 ActionForm
- validate( ) 方法
- ActionForm reset( ) 方法
- 在 Struts 配置文件中聲明 ActionForms
- 使用 ActionForm
- DynaActionForm 類
- 配置動態 ActionForms
- DynaActionForm 和驗證
- 創建 validation.xml 文件
- 插入驗證器

第三部分:內建動作類
- DispatchAction
- ForwardAction
- IncludeAction
- LookupDispatchAction
- SwitchAction

第四部分:標籤參考
- 約定
- 常見標籤屬性
- 使用 JavaBeans 與 Struts 標籤
- 訪問簡單屬性
- 訪問嵌套屬性
- 訪問索引屬性

Bean 標籤
- cookie
- define
- header
- include
- message
- page
- parameter
- resource
- size
- struts
- write

HTML 標籤
- 常見 HTML 屬性
- JavaScript 事件處理器
- HTML 標籤描述

邏輯標籤
- 值比較
- 空值檢查
- 值存在檢查
- 子字串匹配
- 消息檢查
- 應用流程管理
- 集合工具

嵌套標籤
- 根標籤
- 嵌套父標籤
- 子標籤

Tiles 標籤
- add
- definition