Jakarta-Server-Pages-Spec-3.0.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
Jakarta Server Pages Jakarta Server Pages Team, https://projects.eclipse.org/projects/ee4j.jsp 3.0, October 21, 2020: Final Table of Contents Eclipse Foundation Specification License . 1 Disclaimers. 2 Jakarta Server Pages Specification, Version 3.0. 3 Preface . 3 Who Should Read This Document . 3 Organization of This Document . 3 Historical Note . 3 Overview . 4 The Jakarta Server Pages Technology . 4 Basic Concepts . 5 Users of Jakarta Server Pages . 7 Part I . 11 1. Core Syntax and Semantics . 13 1.1. What Is a JSP Page . 13 1.1.1. Web Containers and Web Components . 13 1.1.2. Generating HTML . 13 1.1.3. Generating XML . 13 1.1.4. Translation and Execution Phases . 14 1.1.5. Validating JSP pages . 14 1.1.6. Events in JSP Pages. 15 1.1.7. JSP Configuration Information . 15 1.1.8. Naming Conventions for JSP Files . 15 1.1.9. Compiling JSP Pages . 16 1.1.10. Debugging JSP Pages . 16 1.2. Web Applications . 17 1.2.1. Relative URL Specifications . 17 1.3. Syntactic Elements of a JSP Page. 18 1.3.1. Elements and Template Data . 18 1.3.2. Element Syntax . 18 1.3.3. Start and End Tags . 19 1.3.4. Empty Elements . 20 1.3.5. Attribute Values . 20 1.3.6. The jsp:attribute, jsp:body and jsp:element Elements. 20 1.3.7. Valid Names for Actions and Attributes . 22 1.3.8. White Space . 22 1.3.9. JSP Documents. 23 1.3.10. JSP Syntax Grammar . 24 1.4. Error Handling . 38 1.4.1. Translation Time Processing Errors. 38 1.4.2. Request Time Processing Errors . 38 1.4.3. Using JSPs as Error Pages . 39 1.5. Comments. 39 1.5.1. Comments in JSP Pages in Standard Syntax. 39 1.5.2. Comments in JSP Documents . 40 1.6. Quoting and Escape Conventions . 40 1.7. Overall Semantics of a JSP Page . 42 1.8. Objects. 43 1.8.1. Objects and Variables . 44 1.8.2. Objects and Scopes . 44 1.8.3. Implicit Objects . 45 1.8.4. The pageContext Object. 46 1.9. Template Text Semantics . 46 1.10. Directives . 47 1.10.1. The page Directive. ..