(Chapter 4 Servlet Development Fundamentals Chapter 8 Java Web Worldization Chapter 10 Simple Labels
Chapter 4 Servlet Development Fundamentals In this chapter, some basic knowledge of Servlet will be introduced. Because it is necessary for servlets to run in the web server, this chapter describes how to configure servlets in Tomcat and the configuration of database connection pools. Besides, three ServletAPIs are also introduced in this chapter, they are HttpServlet class, ServletConfig interface and ServletContext interface. The HttpServlet class is the core of the Servlet, and all Servlet classes must inherit from this HttpServlet class.
Chapter 8 JavaWeb Globalization With the spread of the Internet, many Web application programs may be accessed by users in many countries or regions. In order to adapt to the habits of users in different countries or regions, Web application programs must support the globalization function. The most direct way to realize the globalization function is to design pages for users in each country or region, but this will require a lot of work, and it is not easy to protect and upgrade. In order to solve this problem rationally, today's popular behavior is to save the resource information that needs to be globalized in the resource file, and read the globalized information in the corresponding resource file according to the local information.
Chapter 10 Simple Tags In JSP1.x standard only defines a method to implement custom tags, the tags implemented by this method are called traditional tags. Although traditional tags can be used as custom tags, there are too many tools to think about developing a complex custom tag. For example, traditional tags have three core interfaces (Tag, IterationTag and BodyTag) and some other related classes. Will bring a lot of trouble to the development work. Therefore, Sun defines a new custom tag in JSP2.0 standard: simple tag. It is necessary for the tag class of a simple tag to implement the javax.servlet.jsp.tagext.SimpleTag interface. The method of managing tag logic in SimpleTag interface only needs one doTag method, which can realize the functions of doStartTag, doAfterBody and doEndTag methods in traditional tags. To simplify the work of writing simple tags, JSPAPI provides a javax.servlet.jsp.tagext.SimpleTagSupport class, which is the default implementation class of the SimpleTag interface. Under normal circumstances, the tag class of a simple tag only needs to inherit the SimpleTagSupport class.
Chapter 10 Simple Labels.pdf
Chapter 4 Servlet Development Fundamentals.pdf
Chapter 8 JavaWeb Worldization.pdf)