Résumé
Prima Tech's fast & easy® approach is now available for Web developers! Don't spend your time wading through manuals to learn JavaServer Pages. Spend it doing what you do best—creating Web pages! Providing sound information about JavaServer Pages, this book allows readers to fully use the power of JSP. Covering everything from JSP basics to performing calculations, this combination of easy-to-understand instructions and visual examples results in unique, hands-on-approach to JavaServer Pages that you won't find anywhere else. Less time, less effort, more results!
Screen by screen, use this comprehensive JavaServer Pages guide to:
- Create forms and retrieve user-submitted information
- Construct a database-driven Web site
- Create new tags that will extend the functionality of JSP
What's on the CD-ROM
- JRun Server 3.0 Developer Edition
- Trial Versions of:
- KawaTM 5.0
- JRunTM Studio 3.0.1
- Macromedia® Dreamweaver®
- Macromedia® Dreamweaver® UltraDevTM 4
- Macromedia® Fireworks® 4
Table of Contents
Introduction
Chapter 1 Introducing JavaServer Pages
An Overview of JavaServer Pages
How Do JavaServer Pages Work?
The Advantages of Using JSP
Making the Transition from ASP to JSP
Chapter 2 Getting Started
Installing the Java Development Kit
Selecting a JSP Editor
Writing Your First JSP Page
Chapter 3 Understanding JSP Basics
Using the Expression Tag
Using the Declaration Tag
Declaring String Variables
Declaring Methods
Commenting Your Code
Using Implicit Variables
Chapter 4 Performing Calculations
Performing Basic Mathematical Operations
Changing the Order of Precedence
Using Increment and Decrement Operators
Working with Mathematical Functions
Generating Random Numbers
Displaying the Current Date and Time
Formatting the Time
Formatting the Date and Time
Chapter 5 Working with Strings and Arrays
Working with Strings
Combining Strings
Comparing Strings
Changing the Case of Strings
Removing Leading and Trailing Spaces
Searching for Text
Replacing Characters
Replacing Text
Chapter 6 Working with Decisions and Loops
Using Boolean Expressions
Using Logical Operators
Using the if...else Statement
Using the if...else if Statement
Using the switch Statement
Using the for Loop
Using the while Loop
Using the do...while Loop
Using the break Statement
Using the continue Statement
Chapter 7 Object-Oriented Programming
What is Object-Oriented Programming?
Understanding Classes and Objects
Methods
Using the Employee Class in a JSP Page
Chapter 8 Handling Exceptions
Exceptions versus Errors
Using try-catch to Handle Exceptions
Catching Common Exceptions
Creating an Error Page in JSP
Specifying an Error Page for Your Web Application
Chapter 9 Using JavaBeans
What is a JavaBean?
Creating a Simple JavaBean
Using JSP Tags to Manipulate JavaBean Properties
Creating a JavaBean to Calculate Simple Interest
Using a JavaBean to Retrieve and Process Forms
Assigning Form Data to JavaBean Properties
Chapter 10 Retrieving Information from a User
Creating HTML Forms
Inserting a Password Field
Inserting a Multi-Line Text Entry Field
Inserting Radio Buttons
Inserting Check Boxes
Inserting Drop-Down Boxes
Inserting Hidden Form Fields
Submitting a Form
Resetting a Form
Retrieving Environmental Variables
Creating a Multiple-Choice Quiz
Grading the Quiz
Validating E-Mail Addresses
Validating Numeric Data
Chapter 11 Sending E-Mail Messages
Using the JavaMail API
Sending E-Mail
Sending Blind and Carbon Copies of an E-Mail Message
Processing an E-Mail Form
Chapter 12 Working with Files and Folders
Displaying File Attributes
Listing the Contents of a Directory
Reading a File
Writing a File
Appending Data to a File
Creating a Guestbook
Appending the Guestbook Entry to a File
Chapter 13 Creating Interactive Web Pages
Greeting Your Visitors
Displaying Random Text
Generating Random Images
Using the Include Directive
Forwarding Requests
Generating Microsoft Word Documents
Generating Microsoft Excel Spreadsheets
Creating Dynamic Images
Drawing Rectangles
Drawing Ovals
Rendering Text
Changing the Font
Generating Dynamic Image Banners
Displaying the Image Banner
Drawing Bar Charts
Chapter 14 Persisting User Information
Using Cookies
Reading a Cookie
Deleting a Cookie
Using Cookies to Remember Login Details
Reading a Session Variable
Deleting a Session
Using Sessions to Password-Protect Your Web Site
Chapter 15 Working with Databases
What is JDBC?
Setting up a System DSN for an Access Database
Connecting to a Database
Using SQL to Query a Database
Defining Search Criteria
Using Boolean Search Criteria
Searching for a Range of Values
Wildcard Searching
Retrieving Distinct Records
Using the Column Aggregate Functions
Sorting Records
Performing Multi-Table Queries
Working with Prepared Statements
Displaying Summary Search Results and Linking to Full Records
Displaying a Full Record
Updating Records
Deleting Records
Creating Paged Search Results
Chapter 16 XML and JSP
What is XML?
Creating an XML Document
Using JSP to Generate an XML Document
Generating XML from a Database
Using XSL to Format an XML Document
Specifying an XSL Style Sheet
Chapter 17 Working with Servlets
Creating a Basic Servlet
Processing Forms
Generating Images
Servlets versus JSP
Integrating Servlets and JSP
Chapter 18 Creating Custom Tags
What Is a Tag Library?
Creating a Simple Tag Library
Creating the Tag Library Descriptor File (TLD)
Using the Tag Library
Creating the Tag Library Descriptor File
Using the Tag Library
Creating the Tag Library Descriptor File
Using the Tag Library
Creating the Tag Library Descriptor File
Using the Tag Library
Creating the Tag Library Descriptor File
Using the Tag Library
Chapter 19 Creating an Employee Directory
Design Requirements
Designing the Employee Directory Database
Creating the Search Form
Searching by Position
Searching by Department
Processing the Search by Position Request
Processing the Search by Department Request
Administering the Employee Directory
Processing the Insert Form
Creating the Update Form
Processing the Update Form
Creating the Delete Form
Processing the Delete Form
Chapter 20 Creating an Online Store
The Fundamentals of an Online Store
Designing a Database for an Online Store
Building the Product Class
Building the Shopping Cart JavaBean
Displaying the Product Catalog
Viewing the Shopping Cart
Emptying the Shopping Cart
Building the Checkout Page
Processing the Purchase
Testing the Online Store
Appendix A HTML Quick Reference
Appendix B JSP Quick Reference
Appendix C Additional Resources
Appendix D What's on the CD-ROM
Running the CD-ROM with Windows 95/98/2000/Me/NT
The Prima User Interface
Using the Right Panel
Resizing and Closing the User Interface
Index
L'auteur - Aneesha Bakharia
Aneesha Bakharia is a Web developer specializing in ASP and JavaScript. She has over 4 years of experience in developing database-driven Web sites and has built many such Web applications for Manhattan Multimedia. She is a tutor for an online Web development course at the University of Southern Queensland in Australia. She is an advanced user of Macromedia Dreamweaver and Drumbeat.
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Prima Publishing |
Auteur(s) | Aneesha Bakharia |
Parution | 01/08/2001 |
Nb. de pages | 462 |
Format | 18,8 x 23 |
Couverture | Broché |
Poids | 831g |
Intérieur | Noir et Blanc |
EAN13 | 9780761534280 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse