找回密码
 立即注册
标签ServlettheChapter | 通讯编程 2022-09-23 136 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
第4章Servlet开发基础第8章JavaWebS界化第10章简单标签
第4章Servlet开发基础在本章将介绍Servlet的一些基础知识。因为Servlet有必要运行在Web服务器中,因而,在本章介绍了如何在Tomcat中配置Servlet以及数据库连接池的配置。除此之外,在本章还侧重介绍了三个ServletAPI,它们是HttpServlet类、ServletConfig接口和ServletContext接口。其间HttpServlet类是Servlet的核心,一切的Servlet类都要从这个HttpServlet类承继。
第8章JavaWebS界化随着Internet的遍及,很多Web使用程序可能要被很多G家或区域的用户访问,为了习气不一样G家或区域的用户的习气,Web使用程序有必要支持S界化功能。实现S界化功能最直接的方法即是为每一个G家或区域的用户独自设计页面,但这样做工作量会很大,也不易保护和升级。为理解决这个问题,如今遍及的行为是将需求S界化的资源信息保存在资源文件中,并依据本地信息来读取相应资源文件中的S界化信息。
第10章简单标签在JSP1.x标准中只定义了一种实现自定义标签的方法,通过这种方法实现的标签被称为传统标签。尽管传统标签完全可以担任自定义标签的工作,但开发一个复杂的自定义标签需求思考的工具太多,如传统标签有三个核心接口(Tag、IterationTag和BodyTag)以及别的一些相关的类,这将给开发工作带来很多的费事。因而,Sun在JSP2.0标准中定义了一种新的自定义标签:简单标签。简单标签的标签类有必要实现javax.servlet.jsp.tagext.SimpleTag接口。SimpleTag接口中管理标签逻辑的方法只要一个doTag方法,该方法可以实现传统标签中的doStartTag、doAfterBody和doEndTag等方法的功能。为了简化编写简单标签的工作,JSPAPI提供了一个javax.servlet.jsp.tagext.SimpleTagSupport类,该类是SimpleTag接口的默认实现类。在通常状况下,简单标签的标签类只需求承继SimpleTagSupport类即可。
第10章简单标签.pdf
第4章Servlet开发基础.pdf
第8章JavaWebS界化.pdf

(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)

[下载]23231653716.rar




上一篇:c与c++嵌入式系统编程
下一篇:某项目Websphere安装配置文档(图解)