Skip to content

JSP The Complete Reference

Best in textbook rentals since 2012!

ISBN-10: 0072127686

ISBN-13: 9780072127683

Edition: 2001

Authors: Phil Hanna

List price: $49.99
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Customers also bought

Book details

List price: $49.99
Copyright year: 2001
Publisher: McGraw-Hill Osborne
Binding: Book, Other 
Pages: 876
Size: 7.40" wide x 9.00" long x 2.10" tall
Weight: 3.938
Language: English

Prefacep. xix
Acknowledgmentsp. xxv
The Web Programming Environment
The Web Marketplacep. 3
Evolution of the Web Applicationp. 5
Birth of the Webp. 6
Growth of the Web Programming Modelp. 6
The Shift from Client-Side to Server-Side Solutionsp. 9
Overview of the Hypertext Transfer Protocol (HTTP)p. 11
What Is HTTP?p. 12
A Language for Requesting Documents over the Internetp. 12
The HTTP Specificationp. 12
HTTP Request Modelp. 13
Connecting to the Web Serverp. 14
Sending the HTTP Requestp. 15
Server Acceptance of the Requestp. 16
The HTTP Response from the Serverp. 16
Examplesp. 17
Summaryp. 21
Introduction to Servletsp. 23
Servlet Lifecyclep. 24
Initp. 25
Servicep. 26
Destroyp. 27
Example: Kilometers per Liter to Miles per Gallon Servletp. 27
Servlet Classesp. 31
Servletp. 32
Servlet Requestp. 36
Servlet Responsep. 41
Servlet Contextp. 44
Threading Modelsp. 47
SingleThreadModelp. 49
HTTP Sessionsp. 49
The HttpSession Interfacep. 50
Summaryp. 52
JSP Overviewp. 53
How JSP Worksp. 54
A Basic Examplep. 56
Elements of JSP
JSP Syntax and Semanticsp. 63
The JSP Development Modelp. 64
Components of a JSP Pagep. 65
Directivesp. 65
Commentsp. 68
Expressionsp. 69
Scriptletsp. 70
Declarationsp. 71
Implicit Objectsp. 74
Standard Actionsp. 75
Tag Extensionsp. 78
A Complete Examplep. 78
A Page Directivep. 83
A [left angle bracket]jsp:include[right angle bracket] Actionp. 83
Scriptletp. 84
JSP Expressionsp. 85
A Declarationp. 86
Summaryp. 87
Expressions and Scriptletsp. 89
Expressionsp. 90
Scriptletsp. 91
Expression and Scriptlet Handling by the JSP Containerp. 93
HTML Template Data and Expressionsp. 94
Scriptlet Contentsp. 94
Container-Generated Initialization and Exit Codep. 96
Implicit Objects and the JSP Environmentp. 97
Requestp. 98
Responsep. 99
PageContextp. 100
Sessionp. 102
Applicationp. 103
Outp. 104
Configp. 106
Pagep. 106
Exceptionp. 106
Initialization Parametersp. 107
Summaryp. 109
Declarationsp. 111
What Is a Declaration?p. 112
Where Declaration Code Is Generatedp. 112
Primary Uses for Declarationsp. 117
Variable Declaractionsp. 117
Thread Safety and Instance Variablesp. 118
Method Definitionsp. 122
Overriding jspInit and jspDestroyp. 126
Access to Implicit Objectsp. 128
Inner Classesp. 128
Request Dispatchingp. 133
Anatomy of Request Processingp. 134
Including Other Resourcesp. 136
The include Directivep. 136
How It Worksp. 137
Effect of Changes in an Included Filep. 138
Using the include Directive to Copy Source Codep. 139
The [left angle bracket]jsp:include[right angle bracket] Actionp. 140
How It Worksp. 141
Which Method to Usep. 153
Forwarding Requestsp. 154
The RequestDispatcher Objectp. 158
Request Dispatching vs. Redirectionp. 159
Model 1 vs. Model 2p. 159
Summaryp. 160
The Page Directivep. 161
languagep. 162
extendsp. 164
Required Interfaces for a JSP Superclassp. 164
A JSP Superclass Examplep. 166
importp. 170
sessionp. 172
buffer and autoFlushp. 172
isThreadSafep. 173
infop. 174
contentTypep. 174
errorPage and isErrorPagep. 176
Summaryp. 181
JSP Tag Extensionsp. 183
Why Custom Tags?p. 184
Developing Your First Custom Tagp. 186
Define the Tagp. 186
Create the TLD Entryp. 187
Write the Tag Handlerp. 188
Incorporate the Tag into a JSP Pagep. 192
How Tag Handlers Workp. 194
What the JSP Container Doesp. 194
What a Tag Handler Doesp. 196
Tag Librariesp. 197
The Tag Library Descriptor (TLD)p. 197
The taglib Directivep. 199
The Tag Handler APIp. 200
The Tag Interfacep. 200
The TagSupport Classp. 202
The Tag Handler Life Cyclep. 202
The Flowchartp. 204
An Example of Generated Codep. 206
Defining Tag Attributesp. 212
The Body Tag Handler APIp. 219
BodyContentp. 219
The BodyTag Interfacep. 221
The BodyTagSupport Classp. 222
The Body Tag Handler Life Cyclep. 223
The Flowchartp. 223
Defining Scripting Variablesp. 226
The TagExtraInfo Classp. 227
Validating Tag Attributesp. 236
Cooperating Tagsp. 236
Using Syntactic Scopingp. 236
Implementation of the DatabaseQuery Examplep. 247
The Necessary Tagsp. 247
The Tag Library Descriptorp. 248
The Tag Handlersp. 249
Summaryp. 258
JSP in Action
HTML Formsp. 261
The FORM Elementp. 263
Attributes of the FORM Elementp. 264
Form Input Elementsp. 268
Elements Created with the INPUT Tagp. 270
Elements Created with select and optionp. 283
The textarea Elementp. 284
Form Validationp. 285
The Contact Us Form with Validationp. 285
The Server Side of Forms Handlingp. 287
Summaryp. 289
Database Accessp. 291
Overview of JDBCp. 292
Basic JDBC Operationsp. 293
Essential JDBC Classesp. 293
A Simple JDBC Examplep. 296
JDBC Driversp. 301
Driver Typesp. 303
The JDBC-ODBC Bridgep. 303
Registering a Driverp. 305
Connecting to a Databasep. 307
The JDBC Database URLp. 308
The Statement Interfacesp. 309
Statementp. 309
PreparedStatementp. 317
CallableStatementp. 322
Result Setsp. 328
Scrollable Result Setsp. 332
Updatable Result Setsp. 336
RowSetsp. 338
Using Metadatap. 338
Database Metadatap. 339
ResultSetMetadatap. 349
New Features in JDBC 2.0 and Beyondp. 351
Summaryp. 351
Session and Thread Managementp. 353
Session Trackingp. 354
Hidden Fieldsp. 355
URL Rewritingp. 360
Cookiesp. 363
The Session APIp. 369
Creating Sessionsp. 370
Storing and Retrieving Objects from Sessionsp. 372
Destroying Sessionsp. 373
Examples Revisitedp. 374
Session Binding Listenersp. 383
Thread Managementp. 390
Threading Conceptsp. 391
Servlet Threading Modelsp. 403
Default Threading Modelp. 403
Single Threaded Modelp. 405
Multithreaded Applicationsp. 406
Application Considerationsp. 411
Summaryp. 413
JSP and JavaBeansp. 415
What Is a JavaBean?p. 416
Bean Propertiesp. 416
Persistencep. 419
JSP Actionsp. 424
[left angle bracket]jsp:useBean[right angle bracket]p. 425
[left angle bracket]jsp:setProperty[right angle bracket]p. 430
[left angle bracket]jsp:getProperty[right angle bracket]p. 434
A Complete Example--Personalization with Beansp. 434
Getting Weather Data from the Webp. 435
The LyricNote Portalp. 444
Summaryp. 448
JSP and XMLp. 451
XML Overviewp. 452
The Problem XML Solvesp. 453
XML Syntaxp. 453
The Document Type Definitionp. 454
XML Parsersp. 457
Document Object Model (DOM)p. 458
Simple API for XML (SAX)p. 472
XSL Transformations with XSLTp. 486
XSLT in Actionp. 487
Summaryp. 491
JSP Testing and Debuggingp. 493
Building a Mental Modelp. 494
Translation and Compilationp. 494
Testing in Isolationp. 499
Debugging Toolsp. 500
Capturing Form Parametersp. 501
A Debugging Web Clientp. 504
Tracing HTTP Requestsp. 510
Summaryp. 528
Deploying Web Applicationsp. 529
The Web Application Environmentp. 530
Directory Structurep. 530
Resource Mappingp. 532
The Servlet Contextp. 535
The Web Archive (war) Filep. 535
The Deployment Descriptor--web.xmlp. 538
Sample Deployment Descriptorp. 547
Summaryp. 549
Case Study: A Product Support Centerp. 551
Process Flowp. 552
Data Modelp. 554
Developing the Systemp. 555
Model-View-Controller Architecturep. 556
Model Classesp. 557
View Classesp. 631
Controller Classesp. 658
Summaryp. 676
JSP and Other Web Components
Communicating with Other Clientsp. 679
URL Connectionsp. 680
The URL Classp. 680
The URLConnection Classp. 682
The HttpURLConnection Classp. 683
Java Applications as Clientsp. 684
The JSP Price Quote Serverp. 684
The Price Quote Client Applicationp. 687
A Java Applet Clientp. 689
The Java Plug-Inp. 690
The PriceQuoteAppletp. 691
A Perl Clientp. 696
The Generic Database Select Serverp. 696
The Perl Scriptp. 699
Summaryp. 702
Communicating with Other Serversp. 703
Server-Side Scripting Environmentsp. 704
Interoperating with HTTPp. 704
Sending Mail from a JSP Pagep. 710
Approaches to Sending Mailp. 710
E-Mail Notification in the Product Support Systemp. 715
Summaryp. 719
Appendixes
Servlet API Version 2.3p. 723
Package javax.servletp. 724
Filterp. 724
FilterChainp. 725
FilterConfigp. 725
GenericServletp. 726
RequestDispatcherp. 729
Servletp. 730
ServletConfigp. 731
ServletContextp. 732
ServletContextAttributeEventp. 736
ServletContextAttributesListenerp. 737
ServletContextEventp. 738
ServletContextListenerp. 738
ServletExceptionp. 739
ServletInputStreamp. 740
ServletOutputStreamp. 740
ServletRequestp. 743
ServletRequestWrapperp. 747
ServletResponsep. 752
ServletResponseWrapperp. 755
SingleThreadModelp. 758
UnavailableExceptionp. 758
Package javax.servlet.httpp. 760
Cookiep. 760
HttpServletp. 763
HttpServletRequestp. 767
HttpServletRequestWrapperp. 772
HttpServletResponsep. 777
HttpServletResponseWrapperp. 780
HttpSessionp. 783
HttpSessionActivationListenerp. 786
HttpSessionAttributesListenerp. 787
HttpSessionBindingEventp. 788
HttpSessionBindingListenerp. 789
HttpSessionContextp. 790
HttpSessionEventp. 790
HttpSessionListenerp. 791
HttpUtilsp. 791
JSP API Version 1.2p. 793
Package javax.servlet.jspp. 794
HttpJspPagep. 794
JspEngineInfop. 795
JspExceptionp. 795
JspFactoryp. 796
JspPagep. 798
JspTagExceptionp. 799
JspWriterp. 800
PageContextp. 804
Package javax.servlet.jsp.tagextp. 810
BodyContentp. 810
BodyTagp. 811
BodyTagSupportp. 812
IterationTagp. 814
PageDatap. 814
Tagp. 815
TagAttributeInfop. 816
TagDatap. 818
TagExtraInfop. 820
TagInfop. 821
TagLibraryInfop. 824
TagLibraryValidatorp. 826
TagSupportp. 827
TagVariableInfop. 829
TryCatchFinallyp. 831
VariableInfop. 831
HTTP Referencep. 833
HTTP Response Codesp. 834
HTTP Headersp. 836
Indexp. 845
Table of Contents provided by Syndetics. All Rights Reserved.