1、外文原文 Chapter 7. Using Custom Tag Libraries and the JSP Standard Tag Library So far weve covered the JSP basicsthe primary parts of a page and installation and execution of a pageand how to use beans to dynamically add content to a page. Before we start working on real applications, lets turn to anot
2、her fundamental JSP feature: custom tag libraries. Custom tag libraries are, in my opinion, what make JSP so powerful. They make it possible for page authors to embed pretty much any logic in a page using familiar, HTML-like elements. In this chapter, we take a close look at what a custom tag librar
3、y is, how to install and use it, and what the JSP Standard Tag Library (JSTL) brings to the table. 7.1 What Is a Custom Tag Library? The JSP standard actions, such as the and actions used in Chapter 6, are HTML-like elements for commonly needed functions in a JSP page: creating beans, accessing bean
4、 properties, and invoking other JSP pages. But theres a lot more you want to do that isnt covered by the standard actions. To extend the set of action elements a page author can use in the same familiar way, new actions can be developed, either by a programmer as Java classes or by a page author as tag files (a special kind of JSP file). In either case, these actions are called custom actions. A custom action can do pretty much anything: it has access to all information about the request,