Mastering Java Web Integrated Development by Example: Struts+Hibernate+Spring cover

Mastering Java Web Integrated Development by Example: Struts+Hibernate+Spring

No rating yet
Chapters
28
Series
Programming by Example Lecture Hall
ISBN
9787111263289

Tags

Summary

This book is one volume in the "Programming by Example Lecture Hall" series, written by Yan Shuzhuo and Wu Junshen, published by China Machine Press in April 2009, 416 pages, with an accompanying CD. The book uses MyEclipse as the development environment and is organized around the most common lightweight integration solution in Java Web development, SS (that is, Struts+Hibernate+Spring—in this book Struts+Hibernate+Spring, abbreviated as the SSH combination and also written as the SHS combination). The content falls roughly into three parts: first, the basics of J2EE development and environment setup, including basic web technologies and the impact of Java 5's new features on the frameworks; second, how to use each of the three frameworks—the Struts 2 part covers core technologies, interceptors, tag libraries, non-JSP view technologies, type conversion, input validation, internationalization, and page layout; the Hibernate part covers the core API, collection mapping, relationship mapping, Criteria conditional queries, and HQL queries; the Spring part covers the IoC container, reflection and loading mechanisms, DI injection methods, configuration file writing, and AOP programming; third, how the three are integrated, including combining Spring with Hibernate, combining Spring with Struts, and the complete SSH integrated development workflow. The presentation style is "code + comments + results screenshots + code explanation," and the examples mostly come from the authors' actual development work, so readers can practice along with the source code on the CD. The electronic version used for this listing provides limited information; for specific page numbers and accompanying resources, refer to the physical edition.

Editor's review

这是一本典型的“上手型”框架教程,优点在于它的组织方式:先用小实例把 Struts 2、Hibernate 3、Spring 2 分别走一遍,再讲三者如何拼装成一套可用的 Web 应用结构。对当年刚接触 SSH 的开发者来说,这种“先拆后合”的路线比直接读框架文档友好得多。 本书的写法是“代码+注释+效果图+代码说明”,且强调实例来自作者的实际开发,配套光盘提供源码,读者可以一边读一边跑通。对需要理解拦截器、类型转换、HQL、IoC/DI 与 AOP 这些概念的初学者,书中的章节顺序基本对应了实际开发中会依次撞上的问题。 需要提醒的是,本书采用 Struts 2 + Hibernate 3 + Spring 2 的技术栈,出版于 2009 年,其中大量配置方式(如 XML 配置为主、JSP 视图)已不是当前主流;Struts 2 在后续年份也出现过影响较大的安全事件。因此它更适合作为理解 SSH 分层思想与框架演进的历史参考,而不宜当作新项目的技术手册。

Who it's for

A good fit for

  • 正在学习 Java Web 与 J2EE 入门、希望理解 SSH 分层结构的在校学生
  • 需要把 Struts 2、Hibernate、Spring 串起来做课程设计或毕业设计的读者
  • 维护十年前遗留 SSH 项目、需要快速对照框架配置的开发者
  • 以本书为教材的培训班学员或自学者

Not a good fit for

  • 零编程基础、尚未掌握 Java 语法与 Servlet/JSP 的读者
  • 希望学习 Spring Boot、Spring MVC 注解开发等现代技术栈的读者
  • 对框架安全性与长期可维护性有较高要求的生产环境开发者

Reading tips

  1. 先补 Java 基础与 Servlet/JSP、JDBC,再进入框架章节,否则容易被配置细节卡住。
  2. 按“Struts 2 → Hibernate → Spring → 整合”的顺序读,第 25、26 章整合部分建议反复动手跑通。
  3. 把光盘源码导入 MyEclipse 后逐章对照修改,重点观察 XML 配置文件的变化。
  4. 阅读时同步查阅各框架官方文档,注意书中所用版本与当前版本的差异。

About the publisher

China Machine Press China · Founded in 1950

In addition to science and technology and professional publishing, the books in our catalog from China Machine Press also reflect a sustained focus on psychology, computing, management, finance and economics, and social sciences. In psychology, the catalog includes works by C. G. Jung and introductions to analytical psychology, as well as applied topics such as stress and health, and addiction and healing. In computing, it features Structure and Interpretation of Computer Programs (JavaScript Edition). Management and finance titles include Administrative Behavior (4th Edition), The Price of Inequality (Collector's Edition), and This Time Is Different: Eight Centuries of Financial Folly (Commemorative Edition). In the philosophy and history of science, there is The Worldview: The Third Edition. Relevant authors include C. G. Jung, William McGuire, Sonu Shamdasani, and Gabor Maté. Public information is limited; the above summarizes the publisher's profile based solely on the books in our catalog.

Contents

  1. Series Preface
  2. Preface
  3. Chapter 1 Struts Overview
  4. Chapter 2 Overview of Basic Web Technologies
  5. Chapter 3 Struts 2 Core Technologies
  6. Chapter 4 Another Core Struts 2 Technology—Interceptors
  7. Chapter 5 Struts 2 Tag Libraries
  8. Chapter 6 Struts 2 Non-JSP View Technologies
  9. Chapter 7 Struts 2 Type Conversion
  10. Chapter 8 Struts 2 Input Validation
  11. Chapter 9 Struts 2 Internationalization
  12. Chapter 10 Implementing Page Layout in Struts 2
  13. Chapter 11 Introduction to Hibernate
  14. Chapter 12 Getting Started with Hibernate
  15. Chapter 13 Hibernate Core API
  16. Chapter 14 Hibernate Collection Mapping
  17. Chapter 15 Hibernate Relationship Mapping
  18. Chapter 16 Criteria Conditional Queries
  19. Chapter 17 HQL Queries
  20. Chapter 18 Getting Started with Spring
  21. Chapter 19 Why Use Inversion of Control
  22. Chapter 20 The IoC Container's Reflection and Loading Mechanisms
  23. Chapter 21 DI Injection Methods
  24. Chapter 22 How to Write Configuration Files Reasonably
  25. Chapter 23 Using AOP
  26. Chapter 24 Implementing AOP in the Spring Environment
  27. Chapter 25 Combining Spring and Hibernate
  28. Chapter 26 Combining Spring and Struts

FAQ

这本书讲的是 SSH 还是 SHS 组合?
两者指同一件事。书中把 Struts、Hibernate、Spring 的整合称为 SHS 经典组合,业内更常见的叫法是 SSH(Struts+Spring+Hibernate),只是字母排列顺序不同,技术内容一致。
书中的技术版本现在还能直接用吗?
本书使用 Struts 2 + Hibernate 3 + Spring 2,出版于 2009 年,配置以 XML 为主、视图以 JSP 为主。这些写法在当前项目中已较少使用,建议只作为理解框架原理和分层思想的参考,新项目请查阅现行版本文档。
没有配套光盘还能学这本书吗?
可以读,但书中强调“实例驱动”,缺少源码会明显降低效率。建议按书中步骤自行搭建工程,或寻找同类开源示例替代,重点仍在理解配置与调用关系。
这本书适合用来准备 Java Web 面试吗?
部分适合。IoC/DI、AOP、ORM 映射、拦截器等概念仍是面试常见考点,但书中具体的 Struts 2 配置细节已非高频内容,建议搭配现代框架知识一起复习。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category