FREE SHIPPING BOTH WAYS
ON EVERY ORDER!
LIST PRICE:
$42.99

Sorry, this item is currently unavailable.

Core Servlets and JavaServer Pages (JSP)

ISBN: 9780130893406 | 0130893404
Edition: 1st
Format: Paperback
Publisher: Prentice Hall Ptr
Pub. Date: 5/1/2000

Why Rent from Knetbooks?

Because Knetbooks knows college students. Our rental program is designed to save you time and money. Whether you need a textbook for a semester, quarter or even a summer session, we have an option for you. Simply select a rental period, enter your information and your book will be on its way!

Top 5 reasons to order all your textbooks from Knetbooks:

  • We have the lowest prices on thousands of popular textbooks
  • Free shipping both ways on ALL orders
  • Most orders ship within 48 hours
  • Need your book longer than expected? Extending your rental is simple
  • Our customer support team is always here to help
SummaryTable of Contents
Servlets and JavaServer Pages dramatically simplify the creation of dynamic Web pages and Web-enabled applications. With Java 2 Enterprise Edition (J2EE), these tools have come of age, earning the support of an unprecedented range of Web and application servers on every major operating system. This book is a comprehensive guide for every experienced developer who wants to master the new versions of these powerful tools. Start by mastering servlet syntax, installation and setup fundamentals and the servlet life cycle. Use cookies and session tra... MORE
Acknowledgmentsxix
About the Authorxx
Introductionxxi
Real Code for Real Programmersxxii
How This Book Is Organizedxxiii
Conventions... MORE
About the Web Sitexxvii
PART 1 Servlets 2.1 and 2.22(226)
Overview of Servlets and JavaServer Pages
4(16)
Servlets
5(2)
The Advantages of Servlets Over ``Traditional'' CGI
7(2)
Efficient
7(1)
Convenient
7(1)
Powerful
8(1)
Portable
8(1)
Secure
8(1)
Inexpensive
9(1)
JavaServer Pages
9(1)
The Advantages of JSP
10(2)
Versus Active Server Pages (ASP)
10(1)
Versus PHP
10(1)
Versus Pure Servlets
11(1)
Versus Server-Side Includes (SSI)
11(1)
Versus JavaScript
11(1)
Versus Static HTML
12(1)
Installation and Setup
12(8)
Obtain Servlet and JSP Software
12(2)
Bookmark or Install the Servlet and JSP API Documentation
14(1)
Identify the Classes to the Java Compiler
14(1)
Package the Classes
15(1)
Configure the Server
16(1)
Start the Server
17(1)
Compile and Install Your Servlets
18(2)
First Servlets
20(44)
Basic Servlet Structure
21(2)
A Simple Servlet Generating Plain Text
23(3)
Compiling and Installing the Servlet
24(1)
Invoking the Servlet
25(1)
A Servlet That Generates HTML
26(1)
Packaging Servlets
27(4)
Creating Servlets in Packages
28(1)
Compiling Servlets in Packages
29(1)
Invoking Servlets in Packages
30(1)
Simple HTML-Building Utilities
31(3)
The Servlet Life Cycle
34(5)
The init Method
34(2)
The service Method
36(1)
The doGet, doPost, and doXxx Methods
37(1)
The Single ThreadModel Interface
38(1)
The destroy Method
38(1)
An Example Using Initialization Parameters
39(5)
An Example Using Servlet Initialization and Page Modification Dates
44(6)
Debugging Servlets
50(2)
WebClient: Talking to Web Servers Interactively
52(12)
WebClient
52(3)
HttpClient
55(2)
NetworkClient
57(2)
SocketUtil
59(1)
CloseableFrame
60(1)
LabeledTextField
61(2)
Interruptible
63(1)
Handling the Client Request: Form Data
64(28)
The Role of Form Data
65(1)
Reading Form Data from Servlets
66(1)
Example: Reading Three Explicit Parameters
67(3)
Example: Reading All Parameters
70(4)
A Resume Posting Service
74(13)
Filtering Strings for HTML-Specific Characters
87(5)
Code for Filtering
88(1)
Example
89(3)
Handling the Client Request: HTTP Request Headers
92(22)
Reading Request Headers from Servlets
94(2)
Printing All Headers
96(2)
HTTP 1.1 Request Headers
98(6)
Sending Compressed Web Pages
104(3)
Restricting Access to Web Pages
107(7)
Accessing the Standard CGI Variables
114(8)
Servlet Equivalent of CGI Variables
116(3)
A Servlet That Shows the CGI Variables
119(3)
Generating the Server Response: HTTP Status Codes
122(20)
Specifying Status Codes
124(2)
HTTP 1.1 Status Codes and Their Purpose
126(9)
A Front End to Various Search Engines
135(7)
Generating the Server Response: HTTP Response Headers
142(36)
Setting Response Headers from Servlets
143(2)
HTTP 1.1 Response Headers and Their Meaning
145(9)
Persistent Servlet State and Auto-Reloading Pages
154(9)
Using Persistent HTTP Connections
163(5)
Using Servlets to Generate GIF Images
168(10)
Handling Cookies
178(20)
Benefits of Cookies
179(2)
Identifying a User During an E-commerce Session
180(1)
Avoiding Username and Password
180(1)
Customizing a Site
180(1)
Focusing Advertising
181(1)
Some Problems with Cookies
181(2)
The Servlet Cookie API
183(3)
Creating Cookies
183(1)
Cookie Attributes
183(3)
Placing Cookies in the Response Headers
186(1)
Reading Cookies from the Client
186(1)
Examples of Setting and Reading Cookies
186(4)
Basic Cookie Utilities
190(1)
Finding Cookies with Specified Names
190(1)
Creating Long-Lived Cookies
191(1)
A Customized Search Engine Interface
191(7)
Session Tracking
198(30)
The Need for Session Tracking
199(2)
Cookies
200(1)
URL-Rewriting
200(1)
Hidden Form Fields
201(1)
Session Tracking in Servlets
201(1)
The Session Tracking API
201(6)
Looking Up the HttpSession Object Associated with the Current Request
202(1)
Looking Up Information Associated with a Session
202(3)
Associating Information with a Session
205(1)
Terminating Sessions
206(1)
Encoding URLs Sent to the Client
206(1)
A Servlet Showing Per-Client Access Counts
207(2)
An On-Line Store Using a Shopping Cart and Session Tracking
209(19)
Building the Front End
210(5)
Handling the Orders
215(5)
Behind the Scenes: Implementing the Shopping Cart and Catalog Items
220(8)
PART 2 JavaServer Pages228(154)
JSP Scripting Elements
230(16)
Scripting Elements
233(1)
Template Text
234(1)
JSP Expressions
234(4)
Predefined Variables
234(1)
XML Syntax for Expressions
235(1)
Using Expressions as Attribute Values
235(1)
Example
236(2)
JSP Scriptlets
238(4)
Using Scriplets to Make Parts of the JSP File Conditional
241(1)
Special Scriplet Syntax
242(1)
JSP Declarations
242(2)
Special Declaration Syntax
244(1)
Predefined Variables
244(2)
The JSP page Directive: Structuring Generated Servlets
246(20)
The import Attribute
248(3)
Directories for Custom Classes
248(1)
Example
249(2)
The content Type Attribute
251(7)
Generating Plain Text Documents
252(2)
Generating Excel Spreadsheets
254(4)
The is ThreadSafe Attribute
258(1)
The session Attribute
259(1)
The buffer Attribute
259(1)
The autoflush Attribute
260(1)
The extends Attribute
260(1)
The info Attribute
260(1)
The errorPage Attribute
261(1)
The isErrorPage Attribute
261(3)
The language Attribute
264(1)
XML Syntax for Directives
265(1)
Including Files and Applets in JSP Documents
266(20)
Including Files at Page Translation Time
268(2)
Including Files at Request Time
270(4)
Including Applets for the Java Plug-In
274(12)
The jsp:plugin Element
275(2)
The jsp:param and jsp:params Elements
277(1)
The jsp:fallback Element
278(1)
Example: Building Shadowed Text
279(7)
Using JavaBeans with JSP
286(22)
Basic Bean Use
288(4)
Accessing Bean Properties
290(1)
Setting Bean Properties: Simple Case
290(1)
Installing Bean Classes
291(1)
Example: StringBean
292(2)
Setting Bean Properties
294(8)
Associating Individual Properties with Input Parameters
298(2)
Automatic Type Conversions
300(1)
Associating All Properties with Input Parameters
301(1)
Sharing Beans
302(6)
Conditional Bean Creation
304(4)
Creating Custom JSP Tag Libraries
308(44)
The Components That Make Up a Tag Library
310(4)
The Tag Handler Class
310(1)
The Tag Library Descriptor File
311(2)
The JSP File
313(1)
Defining a Basic Tag
314(5)
The Tag Handler Class
315(1)
The Tag Library Descriptor File
316(2)
The JSP File
318(1)
Assigning Attributes to Tags
319(4)
The Tag Handler Class
319(2)
The Tag Library Descriptor File
321(1)
The JSP File
322(1)
Including the Tag Body
323(6)
The Tag Handler Class
324(2)
The Tag Library Descriptor File
326(2)
The JSP File
328(1)
Optionally Including the Tag Body
329(5)
The Tag Handler Class
329(2)
The Tag Library Descriptor File
331(1)
The JSP File
332(2)
Manipulating the Tag Body
334(4)
The Tag Handler Class
334(1)
The Tag Library Descriptor File
335(1)
The JSP File
336(2)
Including or Manipulating the Tag Body Multiple Times
338(3)
The Tag Handler Class
338(2)
The Tag Library Descriptor File
340(1)
The JSP File
341(1)
Using Nested Tags
341(11)
The Tag Handler Classes
342(6)
The Tag Library Descriptor File
348(2)
The JSP File
350(2)
Integrating Servlets and JSP
352(30)
Forwarding Requests
354(4)
Using Static Resources
354(1)
Supplying Information to the Destination Pages
355(2)
Interpreting Relative URLs in the Destination Page
357(1)
Alternative Means of Getting a RequestDispatcher
358(1)
Example: An On-Line Travel Agent
358(17)
Including Static or Dynamic Content
375(2)
Example: Showing Raw Servlet and JSP Output
377(3)
Forwarding Requests From JSP Pages
380(2)
PART 3 Supporting Technologies382(136)
Using HTML Forms
384(48)
How HTML Forms Transmit Data
385(5)
The FORM Element
390(5)
Text Controls
395(5)
Textfields
395(2)
Password Fields
397(1)
Text Areas
398(2)
Push Buttons
400(5)
Submit Buttons
401(3)
Reset Buttons
404(1)
JavaScript Buttons
405(1)
Check Boxes and Radio Buttons
405(4)
Check Boxes
406(1)
Radio Buttons
407(2)
Combo Boxes and List Boxes
409(3)
File Upload Controls
412(2)
Server-Side Image Maps
414(5)
IMAGE---Standard Server-Side Image Maps
414(3)
ISMAP---Alternative Server-Side Image Maps
417(2)
Hidden Fields
419(1)
Grouping Controls
420(2)
Controlling Tab Order
422(1)
A Debugging Web Server
423(9)
EchoServer
423(4)
ThreadedEchoServer
427(1)
NetworkServer
428(4)
Using Applets As Servlet Front Ends
432(28)
Sending Data with GET and Displaying the Resultant Page
434(1)
Multisystem Search Engine Front End
435(3)
Sending Data with GET and Processing the Results Directly (HTTP Tunneling)
438(5)
Reading Binary or ASCII Data
439(2)
Reading Serialized Data Structures
441(2)
A Query Viewer That Uses Object Serialization and HTTP Tunneling
443(7)
Sending Data by POST and Processing the Results Directly (HTTP Tunneling)
450(3)
An Applet That Sends POST Data
453(6)
Bypassing the HTTP Server
459(1)
JDBC and Database Connection Pooling
460(58)
Basic Steps in Using JDBC
462(5)
Load the Driver
462(1)
Define the Connection URL
463(1)
Establish the Connection
464(1)
Create a Statement
465(1)
Execute a Query
465(1)
Process the Results
465(1)
Close the Connection
466(1)
Basic JDBC Example
467(6)
Some JDBC Utilities
473(9)
Applying the Database Utilities
482(5)
An Interactive Query Viewer
487(10)
Query Viewer Code
489(8)
Prepared Statements (Precompiled Queries)
497(4)
Connection Pooling
501(7)
Connection Pooling: A Case Study
508(7)
Sharing Connection Pools
515(3)
Using the Servlet Context to Share Connection Pools
515(1)
Using Singleton Classes to Share Connection Pools
516(2)
APPENDIX Servlet and JSP Quick Reference518(39)
A.1 Overview of Servlets and JavaServer Pages
519(2)
Advantages of Servlets
519(1)
Advantages of JSP
519(1)
Free Servlet and JSP Software
519(1)
Documentation
520(1)
Servlet Compilation: CLASSPATH Entries
520(1)
Tomcat 3.0 Standard Directories
520(1)
Tomcat 3.1 Standard Directories
520(1)
JSWDK 1.0.1 Standard Directories
520(1)
Java Web Server 2.0 Standard Directories
521(1)
A.2 First Servlets
521(2)
Simple Servlet
521(1)
Installing Servlets
521(1)
Invoking Servlets
521(1)
Servlet Life Cycle
522(1)
A.3 Handling the Client Request: Form Data
523(1)
Reading Parameters
523(1)
Example Servlet
523(1)
Example Form
524(1)
Filtering HTML-Specific Characters
524(1)
A.4 Handling the Client Request: HTTP Request Headers
524(2)
Methods That Read Request Headers
524(1)
Other Request Information
525(1)
Common HTTP 1.1 Request Headers
525(1)
A.5 Accessing the Standard CGI Variables
526(1)
Capabilities Not Discussed Elsewhere
526(1)
Servlet Equivalent of CGI Variables
526(1)
A.6 Generating the Server Response: HTTP Status Codes
527(1)
Format of an HTTP Response
527(1)
Methods That Set Status Codes
527(1)
Status Code Categories
527(1)
Common HTTP 1.1 Status Codes
527(1)
A.7 Generating the Server Response: HTTP Response Headers
528(2)
Setting Arbitrary Headers
528(1)
Setting Common Headers
528(1)
Common HTTP 1.1 Response Headers
528(1)
Generating GIF Images from Servlets
529(1)
A.8 Handling Cookies
530(1)
Typical Uses of Cookies
530(1)
Problems with Cookies
530(1)
General Usage
530(1)
Cookie Methods
530(1)
A.9 Session Tracking
531(2)
Looking Up Session Information: getValue
531(1)
Associating Information with a Session: putValue
531(1)
HttpSession Methods
532(1)
Encoding URLs
533(1)
A.10 JSP Scripting Elements
533(1)
Types of Scripting Elements
533(1)
Template Text
533(1)
Predefined Variables
533(1)
A.11 The JSP page Directive: Structuring Generated Servlets
534(3)
The import Attribute
534(1)
The contentType Attribute
534(1)
Example of Using contentType
534(1)
Example of Using setContentType
535(1)
The isThreadSafe Attribute
535(1)
The session Attribute
536(1)
The buffer Attribute
536(1)
The autoflush Attribute
536(1)
The extends Attribute
536(1)
The info Attribute
536(1)
The errorPage Attribute
536(1)
The isErrorPage Attribute
536(1)
The language Attribute
536(1)
XML Syntax
537(1)
A.12 Including Files and Applets in JSP Documents
537(2)
Including Files at Page Translation Time
537(1)
Including Files at Request Time
537(1)
Applets for the Java Plug-In: Simple Case
537(1)
Attributes of jsp:plugin
537(1)
Parameters in HTML: jsp:param
538(1)
Alternative Text
538(1)
A.13 Using JavaBeans with JSP
539(1)
Basic Requirements for Class to be a Bean
539(1)
Basic Bean Use
539(1)
Associating Properties with Request Parameters
539(1)
Sharing Beans: The scope Attribute of jsp:useBean
539(1)
Conditional Bean Creation
540(1)
A.14 Creating Custom JSP Tag Libraries
540(2)
The Tag Handler Class
540(1)
The Tag Library Descriptor File
541(1)
The JSP File
541(1)
Assigning Attributes to Tags
541(1)
Including the Tag Body
541(1)
Optionally Including the Tag Body
542(1)
Manipulating the Tag Body
542(1)
Including or Manipulating the Tag Body Multiple Times
542(1)
Using Nested Tags
542(1)
A.15 Integrating Servlets and JSP
542(2)
Big Picture
542(1)
Request Forwarding Syntax
543(1)
Forwarding to Regular HTML Pages
543(1)
Setting Up Globally Shared Beans
543(1)
Setting Up Session Beans
543(1)
Interpreting Relative URLs in the Destination Page
543(1)
Getting a RequestDispatcher by Alternative Means (2.2 Only)
543(1)
Including Static or Dynamic Content
544(1)
Forwarding Requests from JSP Pages
544(1)
A.16 Using HTML Forms
544(3)
The FORM Element
544(1)
Textfields
544(1)
Password Fields
544(1)
Text Areas
545(1)
Submit Buttons
545(1)
Alternative Push Buttons
545(1)
Reset Buttons
545(1)
Alternative Reset Buttons
545(1)
JavaScript Buttons
546(1)
Alternative JavaScript Buttons
546(1)
Check Boxes
546(1)
Radio Buttons
546(1)
Combo Boxes
546(1)
File Upload Controls
547(1)
Server-Side Image Maps
547(1)
Hidden Fields
547(1)
Internet Explorer Features
547(1)
A.17 Using Applets As Servlet Front Ends
547(5)
Sending Data with GET and Displaying the Resultant Page
547(1)
Sending Data with GET and Processing the Results Directly (HTTP Tunneling)
548(1)
Sending Serialized Data: The Applet Code
549(1)
Sending Serialized Data: The Servlet Code
549(1)
Sending Data by POST and Processing the Results Directly (HTTP Tunneling)
550(1)
Bypassing the HTTP Server
551(1)
A.18 JDBC and Database Connection Pooling
552(5)
Basic Steps in Using JDBC
552(1)
Database Utilities
553(1)
Prepared Statements (Precompiled Queries)
553(1)
Steps in Implementing Connection Pooling
554(3)
Index557

Related Products


  • Core Servlets and JavaServer Pages : Volume 2: Advanced Technologies
    Core Servlets and JavaServer P...
  • Core Servlets and JavaServer Pages: Volume 1: Core Technologies
    Core Servlets and JavaServer P...


Please wait while this item is added to your cart...