Java Server Pages Specification V2.3

所需积分/C币:50 2014-03-17 16:14:54 3.77MB PDF
收藏 收藏

Java Server Pages Specification V2.3
ORACLE IS WILLING TO LICENSE THIS SPECIFICATION TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS AGREEMENT. PLEASE READ THE TERMS AND CONDITIONS OF THIS AGREEMENT CAREFULLY BY DOWNLOADING THIS SPECIFICATION. YOU ACCEPT THE TERMS AND CONDITIONS OF THE AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY IT, SELECT THE DECLINE" BUTTON AT THE BOTTOM OF THIS PAGE Specification: JSR-000245 Java Server(tm)Pages(Specification") Version: 2.3 Status: Maintenance Release 3 Release: 31 May 2013 Copyright 2013 Oracle America, Inc All rights rese LIMITED LICENSE GRANTS 1. License for Evaluation Purposes. Specification Lead hereby grants you a fully paid, non-exclusive, non transferable, rights to view, download, use and reproduce the Specification only for the purpose of internal evaluation. This includes (1) developing applications intended to run on an implementation of the Specification, provided that such applications do not themselves implement any portion(s) of the Specification, and (ii) discussing the Specification with any third party and(iii) excerpting brief portions of the Specification in oral or written communications which discuss the Specification provided that such excerpts do not in the aggregate constitute a significant portion of the Specification 2. License for the Distribution of Compliant Implementations. Specification Lead also grants you a perpetual, non- exclusive, non-transferable, worldwide, fully paid-up, royalty free, limited license(without the right to sublicense)under any applicable copyrights or, subject to the provisions of subsection 4 below, patent rights it may have covering the Specification to create and/or distribute an Independent Implementation of the Specification that: (a)fully implements the Specification including all its required interfaces and functionality;(b) does not modify, subset, superset or otherwise extend the licensor Name Space, or include any public or protected packages, classes, Java interfaces, fields or methods within the Licensor Name Space other than those required/authorized by the Specification or Specifications being implenented; and(c) passes the Techmology Coinpalibility Kit (including satisfying the requiremenls of the applicable TCK Users Guide)for such Specification ("Compliant Implementation"). In addition, the foregoing license is expressly conditioned on your not acting outside its scope. No license is granted hereunder for any other purpose(including, for example, modifying the Specification, other than to the extent of your fair use rights, or distributing the Specification to third parties). Also, no right, title, or interest in or to any trademarks. service marks, or trade names of Specification Lead or Specification Leads licensors is granted hereunder. Java, and Java- related logos, marks and names are trademarks or registered trademarks of Oracle America, Inc in the U.S. and other countries 3. Pass-through Conditions. You need not include limitations(a)-(c) from the previous paragraph or any other particular pass through"requirements in any license You grant concerning the use of your Independent Implementation or products derived from it. However, except with respect to Independent Implementations(and products derived from them) that satisfy limitations(a)-(c)froim the previous paragraph, You nlay neither:(a) grant or otherwise pass through to your o make any claims concerning their implementation s compliance with the Specification in question e your licensees licensees any licenses under Specification Lcad's applicable intellectual property rights; nor(b)authori 4. Reciprocity Concerning Patent Licenses Javaserver Pages 2.3 Specification a. With respect to any patent claims covered by the license granted under subparagraph 2 above that would be infringed by all technically feasible implementations of the Specification, such license is conditioned upon your offering on fair, reasonable and non-discriminatory terms, to any party seeking it from You, a perpetual, non-exclusive, non-transferable worldwide license under Your patent rights which are or would be infringed by all technically feasible implementations of the Specification to develop distribute and use a Compliant Implementation b with respect to any patent claims owned by Specification Lead and covered by the license granted under subparagraph 2, whether or not their infringement can be avoided in a technically feasible manner when implementing the Specification, such license shall terminate with respect to such claims if You initiate a claim against Specification Lead that it has, in the course of performing its responsibilities as the Specification Lead, induced any other entity to infringe Your patent rights c. Also with respect to any patent claims owned by Specification Lead and covered by the license granted under subparagraph 2 above, where the infringement of such claims can be avoided in a technically fcasible manner when implementing the Specification such license, with respect to such claims, shall terminate if You initiate a claim against Specification Lead that its making, having made using, offering to sell, selling or importing a Compliant lmplementation infringes Your patent rights 5.Dcfinitions.For the purposes of this Agrecment: "Independent Implementation"shall mcan an implementation of the Specification that neither derives from any of Specification Lead,s source code or binary code materials nor, except with an appmpriate and separate license from Specification Lead, includes any of Specification Lead, s source code or binary code materials: "Licensor Name Space" shall mean the public class or interface declarations whose names begin with java",javax","com.<Specification Lead> " or their equivalents in any subsequent naming convention adopted by oracle through the Java Community Process, or any recognized successors or replacements thereof; and"Technology Compatibility Kit"or"TCK"shall mcan the test suite and accompanying TCK User's Guide provided by Specification Lead which corresponds to the Specification and that was available either (i) from Specitication Lead's 120 days before the first release of Your Independent Implementation that allows its use for commercial purposes, or (ii) more recently than 120 days from such release but against which You elect to test Your implementation of the Specification This Agreement will terminate iMmediately without notice Iroinl Specification Lead if you breach the AgreeMent or acl outside the scope of the licenses granted above DISCLAIMER OF WARRANTIES THE SPECIFICATION IS PROVIDED"AS IS" SPECIFICATION LEAD MAKES NO REPRESEN TATIONS OR WARRANTIES. EITHER EXPRESS OR IMPLIED. INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT(INCLUDING AS A CONSEQUENCE OF ANY PRACTICE OR IMPLEMENTATION OF THE SPECIFICATION), OR THAT THE CONTENTS OF THE SPECIFICATION ARE SUITABLE FOR ANY PURPOSE. This document does not represent any commitment to release or implement any portion of the Specification in any product. In addition, the Specification could include technical inaccuracies or typographical errors LIMITATION OF LIABILITY TO THE EXTENT NOT PROHIBITED BY LAW. IN NO EVENT WILL SPECIFICATION LEAD OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES INCLUDING WITHOUT LIMITATION. LOST REVENUE PROFITS OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES. HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY ARISING OUT OF OR RELATED IN ANY WAY TO YOUR HAVING. IMPELEMENTING OR OTHERWISE USING USING THE SPECIFICATION. EVEN IF SPECIFICATION LEAD AND/OR ITS LICENSORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES You will indemnify, hold harmless, and defend Specification Lead and its licensors from any claims arising or resulting from: (i) your use of the Specification; (ii) the use or distribution of your Java application, applet and/or implementation and/or (iii) any claims that later versions or releases of any Specification furnished to you are incompatible with the Specification provided to you under this license Javaserver pages 2.3 specification RESTRICTED RIGHTS LEGEND U.S. Government: If this Specification is being acquired by or on behalf of the U.S. Government or by a U.S. Government prime contractor or ontractor(at any tier). then the government's rights in the Software and accompanying documentation shall be only as set forth in this license; this is in accordance with 48 C.F.R. 227 7201 through 227.720 4(for Department of Defense(DoD) acquisitions) and with 48 C.F.R. 2.101 and 12.212(for non-DOD acquisitions) REPORT If you provide Specification Lead with any comments or suggestions concerning the Specification ("Feedback"),you hereby: (i)agree that such Feedback is provided on a non-proprietary and non-confidential basis, and (ii) grant Specification Lead a perpetual, non-exclusive, worldwide, fully paid-up, irrevocable license, with the right to sublicense through multiple levels of sublicensees, to incorporate, disclose, and use without limitation the Feedback for any purpose GENERAL TERMS Any action related to this agreement will be governed by California law and controlling U. S. federal law. The U N Convention for the International Sale of Goods and the choice of law rules of any jurisdiction will not apply The Specification is subject to U.S. export control laws and may be subject to export or import regulations in othe countries. Licensee agrees to comply strictly with all such laws and regulations and acknowledges that it has the responsibility to obtain such licenses to export, re-export or import as may be required after delivery to I icensee. This Agreement is the parties' entire agreement relating to its subject matter. It supersedes all prior or contemporanea oral or written communications, proposals, conditions, representations and warranties and prevails over any conflicting or additional terms of any quote, order, acknowledgment, or other communication between the parties relating to its subject matter during the term of this Agreement. No modification to this Agreement will be binding, unless in writing and signed by an authorized representative of each party JavaServer Pages 2.3 Specification Javaserver pages 2.3 specification Contents Status Presa XXX The JavaServer PagesTM Technology XXXI Basic concepts XXⅩll Users of JavaServer Pages XXXVI Part I JSP.1 Core Syntax and Semantics....,.......1-3 JSP 1.1 What Is a jSP Page 1-3 JSP 1.1.1 Web Containers and Web components JSP 1.1.2 Generating html 1-4 JSP 1.1.3 Generating XML ,,,,,,,,,,,,,,,,,,,1-4 JSP. 1.1. 4 Translation and Execution Phases JSP 1.1.5 Validating JSP pages :·· JSP 1.1.6 Events in JSP Pages ISP.1.1.7 SP Configuration information JSP. 1. 1. 8 Naming Conventions for JSP Files ..... 1-6 JSP.II.9 Compiling JSP Pages l-7 JSP 1.1.10 Debugging SP Pages 1-8 JSP 1.2 Web applications 1-8 JSP 1.2.1 Relative URL Specifications 1-9 JSP 1.3 Syntactic Elements of a JSP Page 1-10 JSP 1.3.1 Elements and Template data.......1-10 JSP 1.3.2 Element Syntax .......................1-10 JSP 1.3.3 Start and end tags ...1-11 JSP 1.3.4 Empty elements 1-12 JSP 1.3.5 Attribute values.,......,....1-12 JSP 1.3.6 The jsp attribute, jsp body and jsp element Elements 1-12 JSP 1.3.7 Valid Names for Actions and Attributes ... 1-14 JSP 1.3.8 White space ,,,,,,,,,,,,,,1-14 ISP.1.9 JSP Documents 1-15 JavaServer Pages 2.3 Specification JSP.1.3.10JSPSntaxGrammar.,,,,,,,,,,,,,,1-16 JSP. 1. 4 Error handling .,,,,,,1-33 JSP I.4.1 Translation Time Processing Errors.... 1-33 .ISP 1.4.2 Request Time Processing Errors 1-34 JSP 1.4.3 Using JSPs as Error Pages ..1-34 JSP 1.5 Comments JSP 1.5.1 Comments in JSP Pages in Standard Syntax. 1-35 JSP 1.5.2 Comments in JSP Documents .,...1-36 JSP 1.6 Quoting and Escape Conventions ........ 1-36 JSP 1.7 Overall Semantics of a JSP Page ....1-38 JSP 1.8 Objects 1-39 JSP 1.8.1 Objects and variables 1-40 JSP 1.8.2 Objects and Scopes ,,,1-40 JSP 1.8.3 Implicit objects .1-41 JSP 1.8.4 The page Context Object .,,,,,1-43 JSP. 1. 9 Template Text Semantics .1-44 SP 1.10 Directives ,.,,1-44 JSP. 1. 10. 1 The page directive 1-44 JSP..0.2 The taglib Directive ..,,,,1-52 ISP.1.10.3 The include directive.,..1-54 JSP. 1.10.4 Implicit Includes............ 1-54 JSP. 1.10.5 Including Data in JSP Pages....... 1-55 JSP. 1.10.6 Additional Directives for Tag Files -56 JSP. 1. 11 EL Elements .,...1-56 JSP.1.12 Scripting Elements.. ISP.1.12.1 Declarations 1-58 JSP. 1. 12.2 Scriptlets 1-58 JSP.1. 12.3 Expressions JSP 1.13 Actions 1-60 JSP 1.14 Tag Attribute Interpretation Semantics 1-61 JSP. 1. 14.1 Request Time Attribute values JSP. 1.14.2 Type Conversions 1-62 JSP.2 Expression Language.............. 1-65 JSP. 2. 1 Syntax of expressions in JSP pages: $VS #i 1-65 JSP 2.2 Expressions and Template text ..,...1-66 JSP 2.3 Expressions and attribute values ................1-66 JSP.2.3.1 Static Attribute .,,,,,,1-67 JSP 2.3.2 Dynamic Attribute ......,,...1-67 JSP 2.3.3 Deferred value 1-68 Javaserver pages 2.3 specification JSP 2.3.4 Deferred method 音 ..1-68 JSP 2.3.5 Dynamic Attribute or Deferred Expression.. 1-69 JSP23.6 Examples of Using${}and#{}..……1-69 JSP.2. 4 Implicit objects. 1-70 JSP 2.5 Deactivating EL Evaluation...........1-71 JSP 2.6 Disabling Scripting Elements 1-71 JSP 2.7 Invalid EL expressions 1-71 JSP 2.8 Errors. Warnings. Default values ...,,,1-72 JSP 2.9 Resolution of variables and their properties .,,,1-72 JSP 2.10 Functions 1-74 JSP 2.10.1 Invocation Syntax .,,,,,,,,1-74 JSP 2.10.2 Tag library descriptor Information 1-75 JSP.2.10.3 Example∴ 1-75 JSP.2.10.4 Semantics .....1-76 JSP.3 JSP Configuration............... 1-77 JSP.3.1 JSP Configuration Information in web. xml .... 1-77 JSP.3.2 Taglib Map ·:··:·:· 1-77 JSP.3.3 JSP Property Groups 1-78 JSP.3.3. 1 JSP Property Groups.......... 1-78 JSP.3.3.2 Deactivating EL evaluation 1-79 JSP.3.3.3 Disabling Scripting Elements .1-81 JSP.3.3.4 Declaring Page Encodings 1-82 JSP.3.3.5 Defining Implicit Includes ·······: 1-83 JSP.3.3.6 Denoting XML Documents 1-84 JSP.3.3.7 Deferred Syntax(character sequence#4 1-84 JSP.3.3.8 Removing whitespaces from template text . 1-85 JSP.3.3.9 Declaring Default Content Type ..........1-86 ISP 3.3.10 Setting Default buffer size 1-86 JSP.3.3. 11 Raising Errors for Undeclared Namespaces. 1-86 JSP. 4 Internationalization Issues............ 1-87 JSP 4.1 Pagc Charactcr Encoding ,.............,.......1-88 JSP, 4.1.1 Standard Syntax ..,,,,1-88 ISP.4.1.2 XML Syntax 1-89 JSP. 4.2 Response Character Encoding ......... 1-90 JSP4.3 Request Character encoding.……………,191 JSP 4.4 XML View Character Encoding 1-91 JSP.4.5 Delivering Localized Content..........1-91 JavaServer Pages 2.3 Specification JSP.5 Standard Actions ...................4...........1-93 JSP.5.1 < jsp: use Bean> ········· ..193 JSP.5.2 jsp: setProperty> ..,,,,,1-99 JSP.5.3 <jsp get Property>.............. 1-101 JSP.5.4 < jsp: include> .,,,,,,,,1-103 ISP.5.5 jsp: forward> 1-105 JSP 5.6 jsp: param> .....1-106 JSP.57<jsp: plugin>∴ ..1-107 JSP.5.8 jsp params> 1-109 JSP.5.9 <jsp: fallback> JSP.5.10 <isp: attI 1-109 JSP.5.11 <jsp: body> 1-112 JSP.5.12 <jsp: invoke> 1-113 JSP.5. 12.1 Basic Usage JSP 5.12.2 Storing fragment Output 1-113 JSP.5. 12.3 Providing a fragment access to variables. 1-114 JSP.5. 13 <jsp: doBody> ...,,,,1-115 JSP.5.14 jsp: element> 7 ·· JSP..15 <jsp: text> .1-118 JSP.5.16 <jsp: output 番垂番 ...,..1-119 JSP.5.17 Other standard actions ....,,1-123 JSP6 JSP Documents。。. 1-125 JSP 6.1 Overview of jsp documents and of xml views..1-125 JSP 6.2 JSP Documents 1-127 JSP 6.2.1 Identifying JSP Documents ....1-127 JSP 6.2.2 Overview of Syntax of JSP Documents... 1-128 JSP 6.2.3 Semantic model ..,,,1-129 JSP 6.2.4 JSP Document Validation .1-130 JSP.6.3 Syntactic Elements in JSP Documents ,,,,1-131 JSP. 6.3. 1 Namespaces, Standard Actions, and Tag libraries JSP 6.3.2 The jsp: root Element 1-132 JSP.6.3.3 The isp: output Element 1-133 JSP.6.3. 4 The jsp: directive. page Element...........1-133 JSP.6.3.5 The jsp: directive include element ........1-134 JSP 6.3.6 Additional Directive Elements in Tag files. 1-134 JSP.6.3.7 Scripting elements ....................1-134 JSP 6.3.8 Other standard Actions.......,.1-135 JSP 6.3.9 Template Content ..1-135 Javaserver pages 2.3 specification

试读 127P Java Server Pages Specification V2.3
立即下载 身份认证后 购VIP低至7折
关注 私信
Java Server Pages Specification V2.3 50积分/C币 立即下载
Java Server Pages Specification V2.3第1页
Java Server Pages Specification V2.3第2页
Java Server Pages Specification V2.3第3页
Java Server Pages Specification V2.3第4页
Java Server Pages Specification V2.3第5页
Java Server Pages Specification V2.3第6页
Java Server Pages Specification V2.3第7页
Java Server Pages Specification V2.3第8页
Java Server Pages Specification V2.3第9页
Java Server Pages Specification V2.3第10页
Java Server Pages Specification V2.3第11页
Java Server Pages Specification V2.3第12页
Java Server Pages Specification V2.3第13页
Java Server Pages Specification V2.3第14页
Java Server Pages Specification V2.3第15页
Java Server Pages Specification V2.3第16页
Java Server Pages Specification V2.3第17页
Java Server Pages Specification V2.3第18页
Java Server Pages Specification V2.3第19页
Java Server Pages Specification V2.3第20页

试读结束, 可继续阅读

50积分/C币 立即下载