Java Web Programming Task Tutorial cover

Java Web Programming Task Tutorial

Rating 4.0
Word count
160K words
Chapters
225
ISBN
9787115439369

Tags

Summary

From a beginner's perspective, this book reveals the ins and outs of Java Web development in a deep yet accessible way. The book has 15 chapters covering both the fundamentals of web development—HTML, CSS, and JavaScript—and the key knowledge of Java Web development, including Servlet, session management, JSP, JDBC, and database connection pooling. It incorporates a real e-commerce project that reveals what project development is really like, letting learners experience the joy of building a project firsthand. Concepts are explained in plain, easy-to-understand language, and through realistic web application cases, case-code analysis, and solutions to common problems, readers come to truly understand the whole process of web application development. The book comes with supporting videos, source code, exercises, and teaching slides; an online Q&A is also provided to help beginners learn the content, and we hope more readers will follow it. Suitable as a textbook for programming or web project development courses in computer-related majors at colleges and universities, and a good read for programming enthusiasts at large.

Editor's review

Written by Heima Programmers and published by Posts & Telecom Press, Java Web Programming Task Tutorial is a practice-oriented textbook for beginners in Java Web development. Built around task-driven learning, it breaks the complex Java Web knowledge system into a series of concrete, hands-on tasks, guiding readers to master core technologies step by step as they complete real projects. From Servlets, JSP, and the MVC design pattern to database connectivity and front-end interaction, the content is organized to progress from easy to difficult, with an emphasis on developing practical skills. As a technical tutorial, its strength lies in replacing the lengthy theoretical堆积 of traditional textbooks with clear step-by-step guidance and code examples, making it well suited for self-study or as a companion textbook for training institutions. The cases are close to real development scenarios and help readers build a complete knowledge framework; note, however, that given the rapid pace of technological change, some content (such as older framework versions) may require readers to consult the latest technical documentation for further study. Overall, this is a solid introductory guide that effectively helps beginners overcome their apprehension and quickly build an intuitive understanding and practical foundation in Java Web development.

Who it's for

A good fit for

  • University students in computer-related majors who want to systematically learn Java Web development technologies
  • Career newcomers who have just moved into Java Web development and need to quickly get up to speed with real projects
  • Self-taught programming enthusiasts who prefer task- and case-driven learning
  • Trainees at training institutions seeking supplementary textbooks and exercises that match their courses

Not a good fit for

  • Senior engineers with extensive Java Web development experience who want to study advanced architecture or source code in depth
  • Readers interested only in pure theory or academic research and not in hands-on coding practice

Reading tips

  1. Follow the chapters in order and complete the coding and debugging for each task, making sure to practice every concept hands-on
  2. While reading, consult official documentation or online technical communities to update the versions of the frameworks and tools covered and extend your knowledge
  3. After completing all the tasks in the book, try designing a small web application independently to integrate and consolidate the skills you have learned

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. 版权信息
  2. 内容提要
  3. 序言
  4. 前言
  5. 第1章 网页开发基础
  6. 1.1 HTML技术
  7. 1.1.1 HTML简介
  8. 1.1.2 单标记和双标记
  9. 1.1.3 文本控制与文本样式标记
  10. 1.1.4 图像标记
  11. 1.1.5 表格标记
  12. 1.1.6 表单标记
  13. 1.1.7 列表标记和超链接标记
  14. 1.1.8 <div>标记
  15. 1.2 CSS技术
  16. 1.2.1 简介
  17. 1.2.2 CSS样式的引用方式
  18. 1.2.3 CSS选择器和常用属性
  19. 1.3 JavaScript基础
  20. 1.3.1 DOM相关知识
  21. 1.3.2 JavaScript概述
  22. 1.3.3 JavaScript的使用
  23. 1.4 阶段案例:传智书城页面设计
  24. 【任务 1-1】传智书城首页设计
  25. 【任务 1-2】传智书城注册页面设计
  26. 1.5 本章小结
  27. 第2章 Java Web概述
  28. 2.1 XML基础
  29. 2.1.1 XML概述
  30. 2.1.2 XML语法
  31. 2.1.3 DTD约束
  32. 2.1.4 Schema约束
  33. 2.2 HTTP协议
  34. 2.2.1 HTTP概述
  35. 2.2.2 HTTP请求消息
  36. 2.2.3 HTTP响应消息
  37. 2.3 Tomcat
  38. 2.3.1 Tomcat简介
  39. 2.3.2 Tomcat的安装和启动
  40. 2.3.3 Tomcat诊断
  41. 2.3.4 Web应用
  42. 【任务 2-1】在Eclipse中配置Tomcat
  43. 2.4 本章小结
  44. 第3章 Servlet基础
  45. 3.1 Servlet概述
  46. 3.2 Servlet开发入门
  47. 3.2.1 Servlet接口及其实现类
  48. 3.2.2 实现第一个Servlet程序
  49. 3.2.3 Servlet的生命周期
  50. 3.3 Servlet应用——HttpServlet类
  51. 【任务 3-1】使用Eclipse工具开发Servlet
  52. 【任务 3-2】实现Servlet虚拟路径的映射
  53. 3.4 ServletConfig和ServletContext
  54. 3.4.1 ServletConfig接口
  55. 3.4.2 ServletContext接口
  56. 3.5 本章小结
  57. 第4章 请求和响应
  58. 4.1 HttpServletResponse对象
  59. 4.1.1 发送状态码相关的方法
  60. 4.1.2 发送响应消息头相关的方法
  61. 4.1.3 发送响应消息体相关的方法
  62. 4.2 HttpServletResponse应用
  63. 【任务 4-1】解决中文输出乱码问题
  64. 【任务 4-2】实现网页定时刷新并跳转
  65. 实现请求重定向
  66. 4.3 HttpServletRequest对象
  67. 4.3.1 获取请求行信息的相关方法
  68. 4.3.2 获取请求消息头的相关方法
  69. 4.4 HttpServletRequest应用
  70. 4.4.1 获取请求参数
  71. 【任务 4-3】解决请求参数的中文乱码问题
  72. 4.4.2 通过Request对象传递数据
  73. 4.5 RequestDispatcher对象的应用
  74. 4.5.1 RequestDispatcher接口
  75. 4.5.2 请求转发
  76. 4.5.3 请求包含
  77. 4.6 本章小结
  78. 第5章 会话及其会话技术
  79. 5.1 会话概述
  80. 5.2 Cookie对象
  81. 5.2.1 什么是Cookie
  82. 5.2.2 Cookie API
  83. 【任务 5-1】显示用户上次访问时间
  84. 5.3 Session对象
  85. 5.3.1 什么是Session
  86. 5.3.2 HttpSession API
  87. 5.3.3 Session超时管理
  88. 5.4阶段案例
  89. 【任务 5-2】实现购物车
  90. 【任务 5-3】实现用户登录
  91. 5.5 本章小结
  92. 第6章 JSP技术
  93. 6.1 JSP概述
  94. 6.1.1 什么是JSP
  95. 6.1.2 编写第一个JSP文件
  96. 6.1.3 JSP运行原理
  97. 6.2 JSP基本语法
  98. 6.2.1 JSP脚本元素
  99. 6.2.2 JSP注释
  100. 6.3 JSP指令
  101. 6.3.1 page指令
  102. 6.3.2 include指令
  103. 6.4 JSP隐式对象
  104. 6.4.1 隐式对象的概述
  105. 6.4.2 out对象
  106. 6.4.3 pageContext对象
  107. 6.4.4 exception对象
  108. 6.5 JSP动作元素
  109. 6.5.1 <jsp:include>动作元素
  110. 6.5.2 <jsp:forward>动作元素
  111. 6.6 阶段案例:传智书城JSP页面
  112. 【任务 6-1】实现首页
  113. 【任务 6-2】实现注册页面
  114. 6.7 本章小结
  115. 第7章 EL表达式和JSTL
  116. 7.1 初识JavaBean
  117. 7.1.1 什么是JavaBean
  118. 7.1.2 访问JavaBean的属性
  119. 7.1.3 BeanUtils工具
  120. 7.2 EL表达式
  121. 7.2.1 初识EL
  122. 7.2.2 EL中的标识符
  123. 7.2.3 EL中的保留字
  124. 7.2.4 EL中的变量
  125. 7.2.5 EL中的常量
  126. 7.2.6 EL中的运算符
  127. 7.2.7 EL隐式对象
  128. 7.3 JSTL
  129. 7.3.1 什么是JSTL
  130. 7.3.2 JSTL的下载和使用
  131. 7.3.3 JSTL中的Core标签库
  132. 7.4 本章小结
  133. 第8章 Servlet高级
  134. 8.1 Filter过滤器
  135. 8.1.1 什么是Filter
  136. 8.1.2 实现第一个Filter 程序
  137. 8.1.3 Filter映射
  138. 8.1.4 Filter链
  139. 8.1.5 FilterConfig接口
  140. 【任务 8-1】使用Filter实现用户自动登录
  141. 【任务 8-2】使用Filter实现统一全站编码
  142. 8.2 Listener监听器——Servlet事件监听器概述
  143. 【任务 8-3】监听域对象的生命周期
  144. 【任务 8-4】监听域对象的属性变更
  145. 8.3 本章小结
  146. 第9章 JDBC
  147. 9.1 什么是JDBC
  148. 9.2 JDBC常用的API
  149. 9.2.1 Driver接口
  150. 9.2.2 DriverManager类
  151. 9.2.3 Connection接口
  152. 9.2.4 Statement接口
  153. 9.2.5 PreparedStatement 接口
  154. 9.2.6 ResultSet接口
  155. 9.3 实现第一个JDBC程序
  156. 9.4 PreparedStatement对象
  157. 9.5 ResultSet对象
  158. 【任务 9】使用JDBC完成数据的增删改查
  159. 9.6 本章小结
  160. 第 10 章 数据库连接池与DBUtils工具
  161. 10.1 数据库连接池
  162. 10.1.1 什么是数据库连接池
  163. 10.1.2 DataSource接口
  164. 10.1.3 DBCP数据源
  165. 10.1.4 C3P0 数据源
  166. 10.2 DBUtils工具
  167. 10.2.1 DBUtils工具介绍
  168. 10.2.2 QueryRunner类
  169. 10.2.3 ResultSetHandler接口
  170. 10.2.4 ResultSetHandler实现类
  171. 【任务 10】使用DBUtils实现增删改查
  172. 10.3 本章小结
  173. 第 11 章 JSP开发模型
  174. 11.1 JSP开发模型
  175. 11.2 MVC设计模式
  176. 【任务 11】按照Model2 思想实现用户注册功能
  177. 11.3 本章小结
  178. 第 12 章 文件上传和下载
  179. 12.1 如何实现文件上传
  180. 12.2 文件上传的相关API
  181. 12.2.1 FileItem接口
  182. 12.2.2 DiskFileItemFactory类
  183. 12.2.3 ServletFileUpload类
  184. 【任务 12-1】实现文件上传
  185. 12.3 文件下载
  186. 【任务 12-2】实现文件下载
  187. 【任务 12-3】解决下载中文文件乱码问题
  188. 12.4 本章小结
  189. 第 13 章 传智书城项目设计
  190. 13.1 项目概述
  191. 13.1.1 需求分析
  192. 13.1.2 功能结构
  193. 13.1.3 项目预览
  194. 13.2 数据库设计
  195. 13.2.1 E-R图设计
  196. 13.2.2 数据表结构
  197. 13.3 项目环境搭建
  198. 13.4 本章小结
  199. 第 14 章 传智书城前台程序设计
  200. 14.1 用户注册和登录模块
  201. 【任务 14-1】实现用户注册功能
  202. 【任务 14-2】实现用户登录功能
  203. 14.2 购物车模块
  204. 【任务 14-3】实现购物车的基本功能
  205. 【任务 14-4】实现订单的相关功能
  206. 14.3 图书信息查询模块
  207. 【任务 14-5】实现商品分类导航栏
  208. 【任务 14-6】实现图书搜索功能
  209. 【任务 14-7】实现公告板和本周热卖功能
  210. 14.4 本章小结
  211. 第 15 章 传智书城后台程序设计
  212. 15.1 后台管理系统概述
  213. 15.2 商品管理模块
  214. 【任务 15-1】实现查询商品列表功能
  215. 【任务 15-2】实现添加商品信息功能
  216. 【任务 15-3】实现编辑商品信息功能
  217. 【任务 15-4】实现删除商品信息功能
  218. 15.3 销售榜单模块
  219. 【任务 15-5】实现销售榜单下载功能
  220. 15.4 订单管理模块
  221. 【任务 15-6】实现查询订单列表功能
  222. 【任务 15-7】实现查看订单详情功能
  223. 【任务 15-8】实现删除订单功能
  224. 15.5 本章小结
  225. 附录 SSH轻量级框架介绍

FAQ

Is this book suitable for complete programming beginners?
The book assumes that readers already have a foundation in the Java language. If you are a complete beginner, it is advisable to learn core Java syntax first before reading it.
Is the technology stack in the book outdated?
The book focuses on foundational Java Web technologies such as Servlets and JSP, which are the cornerstones for learning frameworks later. Some tool versions may be older, however, so focus on understanding their core principles as you study.
Do I need to set up a special development environment?
You need to install the JDK, the Tomcat server, and an IDE (such as Eclipse). The book generally provides environment setup guidance, and readers should prepare these in advance.

Related on WeRead

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.

About the author

Heima Programmer is an IT education brand and textbook-writing team under Itcast (Chuanzhi Education), initiated by Zhang Xiaoxiang. It has long focused on developing practical textbooks in areas such as Java, Python, front-end development, and big data, with many of its works published by Posts & Telecom Press. As a collectively credited author, Heima Programmer is not a single individual but a writing team centered on teaching and course development, and its works emphasize hands-on practice and project-driven learning. The library contains 26 of its titles, including representative works such as Software Testing, Modern Methods of Python Programming, Fundamentals of Microservice Architecture (Spring Boot+Spring Cloud+Docker), Java Web Programming Task Tutorial, JavaScript Front-End Development Case Tutorial, Web Design and Production Project Tutorial (HTML+CSS+JavaScript), PHP Basic Case Tutorial, and Java EE Enterprise Application Development Tutorial (Spring+Spring MVC+MyBatis). These works cover categories such as programming design, software learning, computer fundamentals, and examinations. Its writing style relies on cases and task guidance to serve IT learners at both introductory and advanced levels. Public information is limited, so no further biographical details are provided beyond the above.

More by the same author

Top rated in the same category