jsp英文规范
jsp英文规范,从sun官网上下载,对于查阅jsp的实现以及语法很有帮助Specification: JSR-000245 JavaServer(tm)Pages("Specification")Version: 2.2Status: Maintenance release 2ReleaDecember 2009Copyright 2009 SUN MICROSYSTEMS, INC.4150 Network Circle. Santa Clara. California 95054. U.S.AAll rights reservedLIMITED LICENSE GRANTSI_License for Evaluation Purposes_. Sun hereby grants you a fully-paid, non-exclusive, non-transferable, worldwide,limited license(without the right to sublicense), under Sun's applicable intellectual property rights to view, download, useand reproduce the Specification only for the purpose of internal evaluation. This includes (i) developing applicationsintended to run on an implementation of the Specification, provided that such applications do not themselves implementany portion(s)of the Specification, and (ii) discussing the Specification with any third party; and (iii) excerpting briefportions of the Specification in oral or written communications which discuss the Specification provided that suchexcerpts do not in the aggregate constitute a significant portion of the Specification2._ License for the Distribution of Compliant Implementations_. Sun also grants you a perpetual, non-exclusive, non-ransferable, worldwide, fully paid up, royalty free, limited license(without the right to sublicense)under any applicablecopyrights or, subject to the provisions of subsection 4 below, patent rights it may have covering the Specification to createand/or distribute an Independent Implementation of the Specification that: (a) fully implements the Specificationincluding all its required interfaces and functionality; (b) does not modify, subset, superset or otherwise extend theLicensor Name Space, or include any public or protecled packages, classes, Java interfaces, fields or inethods witin theLicensor Name Space other than those required/authorized by the Specification or Specifications being implemented; and(c)passes the Technology Compatibility Kit (including satisfying the requirements of the applicable tCK Users Guide)for such Specification ("Compliant Implementation"). In addition, the foregoing license is expressly conditioned on yournot acting outside its scope. No license is granted hereunder for any other purpose (including. for example, modifying theSpecification, other than to the extent of your fair use rights, or distributing the Specification to third parties). Also, noht. liulebreslin or lo alloI Sun or su’ s liceJava, and Java-related logos, marks and names are trademarks or registered trademarks of Sun Microsystems, Inc in theU.S. and othe3. Pass-through Conditions, You need not include limitations(a)-(c) from the previous paragraph or any other particularpass through"requirements in any license You grant concerning the use of your Independent Implementation or productsderived from it. However, except with respect to Independent Implementations(and products derived from them)thatsatisfy limitations (a)-(c) from the previous paragraph, You may neither: (a) grant or otherwise pass through to yourlicensees any licenses under Suns applicable intellectual property rights; nor(b)authorize your licensees to make anyclaims concerning their implementations compliance with the Specification in questionReciprocity Concerning Patent Licensesa. With respect to any patent claims covered by the license granted under subparagraph 2 above that would be infringedby 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 implementationsof the Specification to develop, distribute and use a Compliant ImplementationJavaserver pages 2.2 Specificationb with respect to any patent claims owned by Sun and covered by the license granted under subparagraph 2. whether ornot their infringement can be avoided in a technically feasible manner when implementing the Specification, such licenseshall terminate with respect to such claims if You initiate a claim against Sun that it has, in the course of performing itsresponsibilities as the Specification Lead induced any other entity to infringe Your patent rightsc Also with respect to any patent claims owned by Sun and covered by the license granted under subparagraph 2 above,where the infringement of such claims can be avoided in a technically feasible manner when implementing theSpecification such license, with respect to such claims, shall terminate if You initiate a claim against Sun that its makinghaving made, using, offering to sell, selling or importing a Compliant Implementation infringes Your patent rights5.Definitions_. For the purposes of this Agreement: "Independent Implementation shall mean an implementation of theSpecification that neither derives from any of Sun,'s source code or binary code materials nor, except with an appropriateand separate license from Sun, includes any of Sun's source code or binary code materials; "Licensor Name Space" shalmean the public class or interface declarations whose names begin with java.javax"."com. sun"or their equivalentsin any subsequent naming convention adopted by Sun through the Java Community Process, or any recognized successorsor replacements thereof; and"Technology Compatibilily Kil" or"TCK"shall mean the test suite and accomPanying TCKUser's Guide provided by Sun which corresponds to the Specification and that was available cither()from Sun's 120 daysbefore the first release of Your Independent Implementation that allows its use for commercial purposes, or(ii)morerecently than 120 days from such release but against which You elect to test Your implementation of the SpecificationThis agreement will terminate immediately without notice from Sun if you breach the agreement or act outside the scopeof the licenses granted aboveDISCLAIMER OF WARRANTIESTHE SPECIFICATION IS PROVIDED"AS IS" SUN MAKES NO REPRESENTATIONS OR WARRANTIESEITHER EXPRESS OR IMPLIED. INCLUDING BUT NOT LIMITED TO. WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT (INCLUDING AS ACONSEQUENCE OF ANY PRACTICE OR IMPLEMENTATION OF THE SPECIFICATION), OR THAT THECONTENTS OF THE SPECIFICATION ARE SUITABLE FOR ANY PURPOSE. This document does not represent anycommitment to release or implement any portion of the Specification in any product. In addition. the specification couldinclude technical inaccuracies or typographical errorsLIMITATION OF LIABILITYTO THE EXTENT NOT PROHIBITED BY LAW. IN NOEVENT WILL SUN OR IIS LICENSORS BE LIABLE FORANY DAMAGES INCLUDING WITHOUT LIMITATION, LOST REVENUE. PROFITS OR DATA OR FORSPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED ANDREGARDLESS OF THE THEORY OF LIABILITY ARISING OUT OF OR RELATED IN ANY WAY TO YOURHAVING. IMPELEMENTING OR OTHERWISE USING USING THE SPECIFICATION. EVEN IF SUN AND/ORITS LICENSORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGESYou will indeInnily, hold harMless, and defend Sun and its licensors froin any clains arising or resulting Iro: (i) youruse of the Specification; (ii)the usc or distribution of your Java application, applet and/or implementation; and/or(iii)anyclaims that later versions or releases of any Specification furnished to you are incompatible with the Specificationyou underthis liJavaserver pages 2.2 SpecificationRESTRICTED RIGHTS LEGEND4( for Department of Defense( DoD) acquisitions)and with 48 C.E.R. 2. 101 and 12.212(for non-DoD acquisitions, pU.S. Government: If this Specification is being acquired by or on behalf of the U.s. Government or by a U.s. Governmenprime contractor or subcontractor (at any tier), then the Government's rights in the Software and accompanyingdocumentation shall be only as set forth in this license, this is in accordance with 48 C.F.R. 227 7201 through 227.720REPORTIf you provide Sun with any comments or suggestions concerning the Specification("Feedback"), you hereby: (i)agreethat such Feedback is provided on a non-proprietary and non-confidential basis, and (ii) grant Sun a perpetual, nonfully paidghtsuhlicensees, to incorporate, disclose, and use without limitation the Feedback for any purposeGENERAL TERMSAny action related to this a greement will be governed by California law and controlling U.S. federal law. The U NConvention for the International Sale of Goods and the choice of law rules of any jurisdiction will not applyThe Specification is subject LD U.S. export control laws and may be subject Lu export or import regulations in othercountries. Licensee agrees to comply strictly with all such laws and regulations and acknowledges that it has theesponsibility to obtain such licenses to export, re-export or import as may be required after delivery to LicenseeThis Agreement is the parties' entire agreement relating to its subject matter. It supersedes all prior or contemporaneousDral or written communications, proposals, conditions, representations anld warranties and prevails over anly conflictingor additional terms of any quote, order, acknowledgment, or other communication between the parties relating to itssubject matter during the term of this Agreement. No modification to this agreement will be binding, unless in writingnd signed by an authorized representative of each partyJavaserver pages 2.2 SpecificationJavaserver pages 2.2 SpecificationContentsStatusPreface,,,,。。,,,。。。,,,,,。。。。。XXIIOverview。。。。。。。。。XXXIThe JavaServer PagesTM Technology....,,.,,.,,,XXX1Basic conceptsXXXIIIUsers of JavaServer PagesXXXVIPart IJSP.1 Core Syntax and Semantics............1-3JSP 1.1 What Is a JSP Page1-3JSP 1.1.1 Web Containers and Web Components.... 1-3JSP 1.1.2 Generating html1-4JSP 1.1.3 Generating XMLJSP. 1.1. 4 Translation and Execution PhasesJSP. 1. 1.5 Validating JSP pagesJSP 1.1.6 Events in JSP Pages.,1-6ISP.1.1.7 SP Configuration informationJSP 1.1.8 Naming Conventions for JSP FilesJSP.II.9 Compiling JSP Pages1-7JSP 1.1.10 Debugging SP Pages1-8JSP 1.2 Web applications1-8JSP. 1. 2.1 Relative URL Specifications........1-9JSP 1.3 Syntactic Elements of a JSP Page1-10JSP 1.3.1 Elements and Template data1-10JSP 1.3.2 Element Syntax,,,1-10JSP 1.3.3 Start and End tags...1-11JSP 1.3.4 Empty Elemer1-12JSP.1. 3.5 Attribute values1-12JSP 1.3.6 The jsp: attribute, jsp: body and jsp: element Elements1-12JSP 1.3.7 Valid Names for Actions and Attributes.,. 1-14JSP.1.3. 8 White space1-14ISP..9 JSP Docum1-15JavaServer Pages 2.1 SpecificationiSP1310 jSP Syntax grammar....,1-16JSP 1.4 Error handling...1-33JSP.1. 4.1 Translation Time Processing errors ........1-33JSP.1.4.2 Request Time processing errors.……….1-34USP. 143 Using jsps as error pages1-34JSP.1.5 Comments..,,,,,,,,,,,,,,,,,,35JSP 1.5.1 Comments in JSP Pages in Standard Syntax. 1-35JSP 1.5.2 Comments in jSP Documents1-36JSP 1.6 Quoting and Escape Conventions1-36JSP 1.7 Overall Semantics of a jSP page1-38JSP 1.8 Objects1-39JSP 1.8.1 Objects and variables1-40JSP 1.8.2 Objects and Scopes1-40JSP 1.8.3 Implicit Objects1-41JSP 1.8.4 The page Context Object..1-43JSP 1.9 Template Text semantics44SP 1.10 Directives.1-44JSP. 1. 10. 1 The page Directive........... 1-44JSP..0.2 The taglib Directive1-52ISP 1.103 The include directive1-54JSP. 1.10.4 Implicit include1-54JSP.1.10.5 Including Data in JSP Pages1-55JSP.1.10.6 Additional Directives for Tag Files .... 1-56JSP. 1. 11 EL Elements...,,,...1-56JSP 1.12 Scripting ElementsISP.1.12.1 Declarations1-58JSP 1.12.2 Scriptlet1-58JSP.1.12. 3 ExpressionsJSP 1.13 Actions1-60JSP 1.14 Tag Attribute Interpretation Semantics....... 1-61JSP. 1. 14.1 Request Time Attribute values.1-61JSP. 1.14.2 Type Conversions1-62JSP.2 Expression Language..,...●·香·D●···1-65JSP 2.1 Syntax of expressions in JSP pages: $I)VS#(..... 1-65JSP 2.2 Expressions and Template Text.,,,,,,,1-66JSP.2. 3 Expressions and attribute values1-66JSP 2.3.1 Static Attribute1-67JSP 2.3.2 Dynamic Attribute春看番.1-67JSP 2.3.3 Deferred value1-68JavaServer Pages 2. 1 SpecificationJSP 2.3.4 Deferred method....,,1-68JSP.2.3.5 Dynamic Attribute or Deferred Expression.. 1-69JSP 2.3.6 Examples of Using S and#(...... 1-69ISP. 2.4 Implicit objects1-70JSP 2.5 Deactivating EL Evaluation1-71JSP 2.6 Disabling Scripting Elements1-71JSP. 2. 7 Invalid eL expressions1-71JSP 2.8 Errors, Warnings, Default values..1-72JSP 2.9 Resolution of variables and their properties .......1-72JSP 2.10 Functions.1-73JSP 2.10.1 Invocation Syntax......,,.,,.,,.1-74JSP 2.10.2 Tag library descriptor Information .......1-74JSP 2.10.3 Example1-75JSP. 2. 10.4 Semantics1-75JSP.3 JSP Configuration..,......,.1-77JSP 3.1 JSP Configuration Information in web. xml1-77JSP.3.2 Taglib Map∴……,,,1-77JSP.3.3 JSP Property Groups....…………….1-78JSP.3.3. 1 JSP Property Groups .......... 1-78JSP 3.3.2 Deactivating EL evaluation1-79JSP 3.3.3 Disabling scripting elements ...... 1-81JSP.3.3.4 Declaring Page Encodings1-82JSP.3.3.5 Defining Implicit Includes1-83JSP.3.3.6 Denoting XML documents,,,1-84JSP.3.3.7 Deferred Syntax(character sequence #O).. 1-84JSP.3.3. 8 Removing whitespaces from template text . 1-85JSP.3.3.9 Declaring Default Content Type ..... 1-86ISP 3.3.10 Setting Default buffer size....1-86JSP.3.3. 11 Raising errors for Undeclared Namespaces. 1-86JSP. 4 Internationalization Issues............1-87JSP 4.1 Pagc Charactcr Encoding ......................1-88JSP 4.1.1 Standard Syntax..,,,1-88ISP.4.1.2 XML Syntax1-89JSP.4.2 Response Character Encoding ......... 1-90JSP.4.3 Request Character encoding.……………,1-91ISP. 4.4 XML View Character Encoding.........1-91JSP 4.5 Delivering Localized Content..........1-91Javaserver pages 2.1 specificationJSP.5 Standard Actions1-93JSP.5.1 < jsp: use Bean>.,.,,,,,,193JSP.5.2 jsp: setProperty>....,,,,,1-99JSP.5.3 .............. 1-101JSP.5. 4 l-105JSP.5.6 < jsp: param>·鲁,,,,,,,,,,1-106JSP.5.7 ∴1-109JSP.5.9 JSP.5.10 JSP 5.12 1-113JSP.5.12.1 Basic UsageJSP.5.12.2 Storing Fragment Output1-113JSP.5. 12.3 Providing a Fragment Access to Variables. 1-114JSP.5.13 ........,,,,,,1-115JSP.5.14 1-117JSP.5. 15 ..1-118JSP.5.16..……,,………,1-119JSP 5.17 Other Standard Actions1-123JSP.6ISP Documents1-125JSP 6.1 Overview of jSP Documents and of Xml views..1-125JSP.6.2 JSP Documents..1-127JSP 6.2.1 Identifying JSP Documents....... 1-127JSP.6.2.2 Overview of Syntax of JSP Documents1-128JSP 6.2.3 Semantic model.1-129JSP 6.2.4 JSP Document Validation1-130JSP.6.3 Syntactic Elements in JSP Documents1-131JSP. 6.3. 1 Namespaces, Standard Actions, and Tag libraries1-131JSP 6.3.2 The jsp: root Element1-132JSP.6.3.3 The isp: output Element.....1-133JSP.6.3. 4 The jsp: directivve page Elelement...........1-133JSP.6.3.5 The isp: directive include element1-134JSP 6.3.6 Additional Directive Elements in Tag files. 1-134JSP.6.3.7 Scripting elements1-134JSP.6.3.8OtherStandardActions........,,,,,,,,,1-135JSP 6.3.9 Template Content1-135JavaServer Pages 2. 1 Specification
下载地址
用户评论