[Reading Notes] Head first servlets & JSP 2nd

Source: Internet
Author: User

Title: head first servlets and JSP: passing the Sun Certified Web component developer exam

Publisher: o'reilly media, Inc.

Author: Bryan Basham, Kathy sield, Bert Bates

Published at: March 2008

Language: English

There is a clear electronic version on the Internet (in English), with a total of 913 pages (including 789 pages of the body) in the full text. Due to the loose gap in the book, many charts, and many repeated content, therefore, although the book is thick, it will be faster to read.

 

Reading Strategy

This book focuses on reading and adopts the following strategies:

First, read the entire book and make some excerpts and notes during reading (some are directly recorded in PDF files and some are recorded in the mybase desktop tool). If there is something unknown, it will not affect subsequent reading, I will not go into details after having a holistic understanding. Some chapters have a large number of contents, but the non-core content can be understood briefly and the concept of integrity is enough.

After reading the book for the first time, I summarized the content and structure of the book in my mind (taking a blank sheet of paper and a pen, without looking at any material to draw the content and correlation of the book ), based on the purpose, you can differentiate which chapters need to be read again, Which chapters can be skipped for the time being, and which chapters have been mastered. Just take a look at the key points. Then the second round of more purposeful reading will be conducted. Of course, application in actual projects is the best way to master the technology, but before that, by reading excellent books to form a holistic concept, I believe it will get twice the result with half the effort.

It takes about 40 hours to read this book from April 12 to May 2. Now is the summary after the first read-through.

 

Book content

This book is humorous and has no lack of fun. It is especially suitable for beginners.

Technologies and Product Versions involved in the book: j2se 1.5, Tomcat 5, servlets 2.4, JSP 2.0, jstl 1.1

 

The book can be divided into three parts

Part 1 (Chapter 1 to chapter 3)General IntroductionView the three chapters again.

This part will be officially mentioned in subsequent chapters. After reading the first three chapters, you can deploy a simple JSP application on Tomcat.

 

Part 2 (chapter 4 to Chapter 10)The key technologies of various development are described in detail. The main contents of each chapter are as follows:

    • Chap 4 servlet (54 pages)Intensive reading of this Chapter

Servlet lifecycle and method, request/Response Message, Servlet/Request/response class inheritance structure, 8 HTTP methods, get/POST method details, redirect/dispatch, etc. Important: Intensive Reading is required.

    • Chap 5 web app (76 pages)Intensive reading of this Chapter

Deployment description details, context initialization parameters, listener, attribute, singlethreadmodel, requestdispatcher

    • Chap 6 Session (58 pages)Intensive reading of this Chapter

Session mechanism, getsession (.) usage, URL rewriting, session processing during redirect, httpsession interface, other cookie usage, lifecycle event, session migration, session-related listener

    • Chap 7 JSP (62 pages)Intensive reading of this Chapter

Page ctictive and scriptlet define variables, declaration, Servlet File structure converted from JSP files, implict object, comment writing in JSP, init parameter method obtaining, and attribute setting. implicit object (application, request, session, page) pagecontext, 13 types of page ctictive attribute, Expression Language (EL), and El disabling

    • Chap 8 scriptless JSP (96 pages)Intensive reading of this Chapter

Bean-related standard actions, JavaBean specification important principles, type and class, directly calling jsp from HTML, automatic string-to-primitive conversion, using scriptlet to get the Property of attribute el implicit object, scenario where scope object is required, Cookie and init Params, El functions, layout template, include Directive and <JSP: include/>, personalized include content, <JSP: Forward>, JSP standard tag library 1.1 (jstl 1.1)

    • Chap 9 jstl (60 pages)Intensive reading of this Chapter

<C: Out>, <C: foreach>, <C: If>, <C: Choose>, <C: Set>, <C: Remove>, <C: import>, <C: URL>, <error-page>, <C: Catch>, 5 types of libraries provided by jstl 1.1, and how to use custom tags (non-jstl tag), TAG body, <URI>, <taglib-location>

    • Chap 10 custom tag Development (page 102)This chapter focuses on the main scenarios

Tag files, attribute directive, location where tag files can be deployed, tag handler, simple tag instance, jspfragment, skippageexception, and classic tag Handler

 

Part 3 (Chapters 11th to 14th)The main content of each chapter is as follows:

    • Chap 11 web app deployment (47 pages)Intensive reading of this Chapter

File structure, war file, configure welcome/error page, configure servlet initialization, XML-compiliant JSP, EJB-related/JNDI-related/mime-mapping dd tag

    • Chap 12 security (51 pages)This chapter focuses on

Multiple <security-constraint> conflict rules, programmatic security, authentication, and so on

    • Chap 13 filter (35 pages)Intensive reading of this Chapter

Comparison between filter and container, configuration of filter and Wrapper class

    • Chap 14 enterprise design pattern (pp. 53)This chapter describes several design patterns and the basic ideas of struts.

Design principles, remote object, Business Delegate, service locator, transfer object, MVC revisited, struts in a nutshell

 

In addition, there are some general charts in the text from time to time, which can be printed for review and reference.

About: head first series Official Website: head first labs
HTTP: // Headfirstlabs.com/

Output Series
Head first iPhone and iPad development, Second Edition
Head first Python
Head first WordPress
Head first C #, Second Edition
Head first Excel
Head first programming
Head first 2D Geometry
Head first iPhone Development
Head First Data Analysis
Head first PMP, Second Edition
Head first networking
Head first rails
Head first Algebra
Head first web design
Head first PHP & MySQL
Head first HTML with CSS & XHTML code magnet Kit
Head first C # code magnet Kit
Head first Java code magnet Kit
Head first SQL code magnet Kit
Head first JavaScript code magnet Kit
Head first Physics
Head first statistics
Head first Ajax
Head first servlets and JSP, Second Edition
Head first software development
Head first Javascript
Head first SQL
Head first object - Oriented Analysis and Design
Head first HTML with CSS & XHTML
Head first Java, Second Edition
Head first design patterns
Head first EJB

There are many funny statements and pictures in this article...

Pictures are said to be taken from the Hong Kong kung fu movies of the Shao age

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.