作者:empty 页数:114 出版社:empty |
This Specification is protected by copyright and the informationdeser bed herein maybe protected by one or more U.S.patents,foreign patents, or pending applications.Except as providedunder the following license, no part of this Speci tication maybereproduced in any form by any means without prior writtenauthorization of Sun and its licensors, if any.Any tise of thisSpecifi e ation and the information de seri bed herein will be gov-erned by these terms and conditions and the Export Control andGeneral Terms asset forth in Sun's website Legal Terms.Byviewing, downloading or otherwise copying this Specification,you agree that you have read, understood, and will comply withall the terms and conditions set forth herein.Subject to the terms and conditions of this license, Sun Micro-systems.Inc.( Sun hereby grants to you a fully-paid.none x-clusive, non-transferable, worldwide, limited license{withoutthe right to sublicense) under Sun's intel lee tual property rightsto review the Spee ification internally for the purposes of evalua.tion only.Other than this limited license, you acquire no right,title or interest in or to this Specification or any other Sun intel-lectual property.This Spee ification contains the proprietary andconfidential information of Sun and may only be used in accor-dance with the license terms set forth there in This license willexpire ninety(90) days from the date of Release listed aboveand will tem minate immediately without notice from Sun if youfail to comply with any provision of this license.Upon termina-tion, you must cease use or destroy the Specif cation.TRADEMARKSNo right, title, or interest in or to any trademarks, servicemarks,or tradenames of Sun or Sun's licensor is granted hereunder.Sun, Sun Microsystems, the Sun logo, Java, JavaBeans,Enterprise JavaBeans, JavaServer, JavaServer Pages, JDK,JDBC, JavaScript, The Network Is The Computer, and WriteOnce, Run Anywhere are trade n arks or registered trade mn at ksof Sun Microsystems, Inc.in the U.S.and other countries
Preface a.
Chapter l:Overview.
General Syntax Rule.
Template Text Seman tio.
Directives.
Who should read this document.
Related Documents.m
Future Directions.a
Objects and Scopes.
Fixed Template Data.
Directives and Action so
Scripting Languages.
Objects and Variables.o
JSP, HTML, and XML.
Simple 21/2-Tier Application.
The JavaServer Pages Technology.
What is a JSP Page?.
Features in JSP 1.0.
The JSP Model.
A Web Application.
Application Models.
N-tier Application.
Loosely Coupled Application.
Using XML with JSP.
Redirecting Requests.
Including Requests.
JSP Elements and Template Data.
JSP Element Syntax.
Start and End Tags.
Empty Elements.
Attribute Values.
WhiteSpace.
Translation Time Processing Errors.
Client Request Time Processing Errors.
Web Application.
Chapter2:CoreSyntaxandSemanties.
Error Handling.ss
Comments.
Quoting and Escape Conventions.
Overview of Semantics.
Relative URL Specifications within an Application . 36
Implementing Relative URL Specifications . 36
JSP Pages.38
The page Directive.39
Synchronization Issues.44
Specifying Content Types.
Delivering Localized Content.
In eluding Data in JSP Pages.
The include Directive.
The taglib Directive.
Declarations.
Scriptlets.
Expressions.
Request Time Attribute Values.
The id Attribute.
These ope Attribute.
isp use Bean>.
jsp setProperty?.
gsp-get Property
S jsp include.
sp forward>.
jsp plugin.
API Contracts.
Implicit Ohje ets.
The page Context Obj eet.
Scripting Elements.
Actions.
The JSP Model.
The jsp:rootElement.
Public ID.
The page directive.
The include Directive.
The taglib Directive.
Declarations.
Seri pt lets.
Expressions-.
Quoting Conventions.
Tag Attribute Interpretation Semantics.
Standard Actions.
Chapter3:TheJSPEngine.
JSP Page Implementation Class.
Request and Response Parameters.
Omitting the extends Attribute.
Using the extends Attribute.
Buffering.
Declarations Section.
Initialization Section.
Main Section.
Actions.i.
Chapter 4; Ser ip ting Elements Based on the Java Programming Language 79
Overall Structure.79
Chapter5:JSPPagesasXMLDocument.83
Why an XML Representation.83
DocumentType.84
Directives.o.84
Scripting Elements,86
Transforming a JSP Page into an XMLDocument . 87
DTD for the XMLdocument.88
Request-Time Attribute Expressions.
vi JavaServer Pages 1.0Specii cation·May 28, 1999
Jsp Page and Http Jsp Page.
Jsp Writer.
Page Context.
Jsp Engine l nfo.
Jsp Factory.
Role of ServletContext.
Relative URL interpretation.
Sessions and ServletContext s.
Path Map Guideline.
JSP 1.1.
Additional Features.
Clarifications.
Changes.
Removals.
Creation.
Usage.
Appendix B Java Servlet 2.1 clarifications.
ClassLoading.
Class Reloading
AccessControL.
URL Path Components.
RequestDispatcher.
Appendix C:Future Directions.a.
Changes he tween 1.0-pd and 1.0.
Changes.
Common Mapping Mechanisms.
Clarification on Validity of Arguments.
Additional Attributes for Include.
Modifying state.
Tag Extension Mechanism.
Additional Feature