+612 9045 4394
 
CHECKOUT
JSP : A Beginner's Guide - Gary Bollinger

Paperback

Published: 1st September 2001
Ships: 7 to 10 business days
7 to 10 business days
RRP $74.00
$59.35
20%
OFF

JavaServer Pages (JSP) are a popular way to deliver dynamic content to otherwise static HTML pages. JSPs are executed on Web servers and are used to generate interactive, viewer specific information. This title provides a learning tool for entry level programmers.

Acknowledgmentsp. xiii
Introductionp. xv
JSP Foundations
Introduction to Internet Technologiesp. 3
The Internet as a Client-Server Architecturep. 4
Network Transparency Issuesp. 5
Stateful Serversp. 7
HTTP Servers Are Statelessp. 8
HTTP Requestsp. 9
The Request Linep. 9
Message Headersp. 14
Message Bodyp. 14
HTTP Responsesp. 15
The Status Linep. 15
Message Headersp. 16
Message Bodyp. 17
The Rest of the Storyp. 17
Echoing the HTTP Protocolp. 18
Client-Side Web Programmingp. 23
Extending the Web Browserp. 25
The Role and Limits of Browser Technologiesp. 30
Server-Side Web Programmingp. 31
Extending the Web Serverp. 34
The Role of Java Servlets and JavaServer Pagesp. 38
Running Your First JSP Programp. 39
Mastery Checkp. 41
JSP Elements: Comments and Directivesp. 43
The JSP Containerp. 44
JSP Stagesp. 45
JSP Scopep. 46
JSP Constructsp. 48
Bird's-Eye View of a Complete JSP Pagep. 49
JSP Commentsp. 50
Using Commentsp. 50
JSP Comment Typesp. 52
JSP Directivesp. 54
The include Directivep. 55
Include Directive Testp. 60
The page Directivep. 62
Page Directive Testp. 69
The taglib Directivep. 70
Mastery Checkp. 73
JSP Elements: Scripting Elementsp. 75
The Three Scripting Elementsp. 76
How the Container Translates JSP Scripting Elementsp. 77
JSP Declarationsp. 81
Variables in a JSP Declarationp. 82
Methods in a JSP Declarationp. 82
Declarations of Advanced Java Featuresp. 83
More About JSP Declarationsp. 84
JSP Expressionsp. 87
More About JSP Expressionsp. 90
JSP Scriptletsp. 91
Variables in Scriptletsp. 91
Expressions in Scriptletsp. 92
Conditionals in Scriptletsp. 92
Iteration in Scriptletsp. 94
Advanced Java Features in Scriptletsp. 95
Exceptions in Scriptletsp. 97
More About JSP Scriptletsp. 98
Scripting Elementsp. 100
Mastery Checkp. 104
Implicit Objectsp. 107
The request Variablep. 109
Request Servicesp. 110
The response Variablep. 119
Response Servicesp. 120
Streaming the Contents of a Filep. 126
The pageContext Variablep. 129
PageContext Servicesp. 130
The session Variablep. 134
Session Servicesp. 135
URL Redirection and URL Includesp. 137
The out Variablep. 140
Out Servicesp. 141
The application Variablep. 145
Application Servicesp. 146
The config Variablep. 155
The page Variablep. 156
Page Servicesp. 156
The exception Variablep. 157
Exception Servicesp. 158
Mastery Checkp. 159
Standard Actionsp. 161
JSP Actionsp. 162
Standard Actions Versus Custom Actionsp. 162
Tag Attributesp. 163
The id Attributep. 164
The scope Attributep. 165
The [left angle bracket]jsp:useBean[right angle bracket] Actionp. 166
Attributes and Usage Rulesp. 167
Processing Stepsp. 167
Using [left angle bracket]jsp:useBean[right angle bracket]p. 170
The [left angle bracket]jsp:setProperty[right angle bracket] Actionp. 173
Attributes and Usage Rulesp. 174
The Two Variants of [left angle bracket]jsp:setProperty[right angle bracket]p. 175
The [left angle bracket]jsp:getProperty[right angle bracket] Actionp. 178
Attributes and Usage Rulesp. 178
Using [left angle bracket]jsp:getProperty[right angle bracket]p. 179
The [left angle bracket]jsp:include[right angle bracket] Actionp. 180
Attributes and Usage Rulesp. 181
Using [left angle bracket]jsp:include[right angle bracket]p. 181
The [left angle bracket]jsp:forward[right angle bracket] Actionp. 182
Attributes and Usage Rulesp. 183
Using [left angle bracket]jsp:forward[right angle bracket]p. 183
The [left angle bracket]jsp:param[right angle bracket] Actionp. 184
Attributes and Usage Rulesp. 184
A Simple Shopping Cartp. 185
The [left angle bracket]jsp:plugin[right angle bracket] Actionp. 190
Attributes and Usage Rulesp. 191
Mapping an Applet to a [left angle bracket]jsp:plugin[right angle bracket]p. 192
Inserting a Menu Appletp. 193
Mastery Checkp. 196
Tag Librariesp. 199
Why Define Custom Tags?p. 200
Elements of a Tag Libraryp. 206
Tag Library Formatsp. 206
The taglib Directivep. 207
The Tag Library Descriptorp. 207
Tag Handlersp. 212
Life Cycle of a Tag Handlerp. 225
Defining Scripting Variablesp. 227
The TagExtraInfo Classp. 227
Defining the Scripting Variablesp. 230
The Recommended Convention for Defining Implicit Objectsp. 233
Defining Implicit Objectsp. 234
Exchanging Data Between Actions and Tag Librariesp. 239
Ids and the PageContext Objectp. 239
The Runtime Stackp. 240
A Template Using a Tag Libraryp. 242
Mastery Checkp. 251
Building Real-World Applications
JSP Architecturesp. 255
Patterns in Application Developmentp. 256
The Idea of Patternsp. 256
The Utility of Patternsp. 258
Architectural Patternsp. 259
Application Tiersp. 260
Splitting the Presentation Tierp. 264
Web Application Architecturesp. 264
Object-Oriented Software Design Patternsp. 267
Model-View-Controllerp. 268
Mediatorp. 270
Commandp. 271
Strategyp. 273
Bridgep. 274
Gallery Viewerp. 277
The Application: A Family Centerp. 285
Securityp. 286
Web-Flowp. 286
Repositoryp. 286
Mastery Checkp. 287
JSP Securityp. 289
Basic Application Securityp. 290
Authenticationp. 290
Authorizationp. 294
Integrityp. 295
Confidentialityp. 297
Availabilityp. 297
Auditingp. 298
Web Authenticationp. 299
LDAP Authenticationp. 299
Certificate-Based Authenticationp. 300
Web Server-Based Authenticationp. 303
Configuring Apache Authenticationp. 305
Servlet Container Authenticationp. 310
Basic Authenticationp. 310
Digest Authenticationp. 313
HTTPS Client Authenticationp. 314
Form-Based Authenticationp. 314
Tomcat Security Interceptorsp. 317
A Custom Tomcat Security Interceptorp. 319
Enhancing Our Login Pagesp. 323
The Elements of Our Security Solutionp. 326
The Login and Login Error Pagesp. 326
The web.xml Filep. 327
The CustomRealm Security Interceptorp. 328
The server.xml Configuration Filep. 332
Mastery Checkp. 333
Controller and Flow Control in Web Applicationsp. 335
Controllerp. 336
User Input Processingp. 336
Interaction with the Modelp. 339
Web Application Workflow and Flow Controlp. 339
Simple Flow Controlp. 348
Address Book Searchp. 354
Advanced Flow Control: The Struts MVC Frameworkp. 372
Final Thoughtsp. 374
Mastery Checkp. 376
Integrating a Databasep. 377
The Role of External Content Sourcesp. 378
Managing Large Amounts of Contentp. 379
Centralizing, Securing, and Sharing Contentp. 380
Providing Dynamic Contentp. 381
Accessing Legacy Information Systemsp. 382
The JDBC Data Access APIp. 385
The JDBC Architecturep. 385
JDBC Basicsp. 387
JavaServer Pages and the JDBC APIp. 398
Using Jakarta DBTagsp. 401
The Family Center Data Modelp. 405
Entity Typesp. 405
Attributesp. 407
Relationshipsp. 408
Adding Security to the Family Centerp. 411
The Family Center Data Access Approachp. 413
The Bridge Patternp. 413
Mastery Checkp. 426
Appendices
Mastery Check Answersp. 429
Introduction to Internet Technologiesp. 430
JSP Elements: Comments and Directivesp. 431
JSP Elements: Scripting Elementsp. 432
Implicit Objectsp. 435
Standard Actionsp. 437
Tag Librariesp. 440
JSP Architecturesp. 442
JSP Securityp. 445
Controller and Flow Control in Web Applicationsp. 448
Integrating a Databasep. 449
Creating a Development and Deployment Environmentp. 451
Web Servers and Containersp. 452
Apache and Tomcatp. 453
Installing Tomcatp. 454
Starting and Stopping Tomcatp. 455
Web Applications and the WAR Formatp. 456
The WAR Directory Structurep. 458
Creating a WAR Filep. 459
The Web Application Deployment Descriptorp. 459
Web Applications in Tomcatp. 461
Installing Apachep. 461
Connecting Apache and Tomcatp. 464
Configuring Tomcat (Answer to Question 3)p. 465
Installing the Adapter (Answer to Question 2)p. 467
Configuring Apache (Answer to Question 1)p. 468
Creating a MySQL Databasep. 471
Downloading MySQLp. 472
Downloading a JDBC Driver for MySQLp. 473
Installing MySQLp. 474
MySQL Administrationp. 475
The mysqladmin Toolp. 476
MySQL Structured Query Languagep. 477
MySQL Documentationp. 479
New Features in JSP 1.2p. 481
The Java 2 Platformp. 482
The Servlet 2.3 Specificationp. 482
The XML Syntaxp. 483
Validation of JavaServer Pagesp. 484
Enhanced Tag Library Supportp. 484
Improved Support for Page Authoringp. 486
Better Localization Supportp. 486
Fixing the "Flush Before You Include"p. 487
Backward Compatibilityp. 487
Indexp. 489
Table of Contents provided by Syndetics. All Rights Reserved.

ISBN: 9780072133196
ISBN-10: 0072133198
Series: Essential skills for first-time programmers
Audience: Professional
Format: Paperback
Language: English
Number Of Pages: 532
Published: 1st September 2001
Publisher: McGraw-Hill Education - Europe
Country of Publication: US
Dimensions (cm): 23.5 x 19.1  x 2.7
Weight (kg): 0.88
Edition Type: Annotated