Java server pages fast & easy - Aneesha Bakharia - Librairie Eyrolles
Tous nos rayons

Déjà client ? Identifiez-vous

Mot de passe oublié ?

Nouveau client ?

CRÉER VOTRE COMPTE
Java server pages fast & easy
Ajouter à une liste

Librairie Eyrolles - Paris 5e
Indisponible

Java server pages fast & easy

Java server pages fast & easy

Aneesha Bakharia

462 pages, parution le 01/08/2001

Résumé

Getting Web Developers Up to Speed with JavaServer Pages

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

Setting the CLASSPATH Variable
Installing JRun Developer Edition
Selecting a JSP Editor
Writing Your First JSP Page

Chapter 3 Understanding JSP Basics

Using the Expression Tag
Using the Declaration Tag

Declaring Integer Variables
Declaring String Variables
Declaring Methods
Using the Scriptlet Tag
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 Date
Formatting the Time
Formatting the Date and Time

Chapter 5 Working with Strings and Arrays

Working with Strings

Determining the Length of a String
Combining Strings
Comparing Strings
Changing the Case of Strings
Removing Leading and Trailing Spaces
Searching for Text
Replacing Characters
Replacing Text
Working with Arrays
Processing an Array
Working with Vectors

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

Instance Variables
Methods
Creating a Class
Creating an Employee Class
Using the Employee Class in a JSP Page
Inheritance

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 the Simple Interest JavaBean
Understanding JavaBean Scope
Using a JavaBean to Retrieve and Process Forms
Creating the Form
Assigning Form Data to JavaBean Properties
Using Commercial JavaBeans

Chapter 10 Retrieving Information from a User

Creating HTML Forms

Inserting a Text Entry Field
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
Processing a Form
Retrieving Environmental Variables
Creating a Multiple-Choice Quiz
Creating the Quiz Form
Grading the Quiz
Validating User Input
Validating Empty Fields
Validating E-Mail Addresses
Validating Numeric Data

Chapter 11 Sending E-Mail Messages

Using the JavaMail API
Sending E-Mail

Sending a Simple E-Mail Message
Sending Blind and Carbon Copies of an E-Mail Message
Working with E-Mail Forms
Creating an E-Mail Form
Processing an E-Mail Form
Sending HTML-Formatted E-Mail Messages

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

Displaying the 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 a Line
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

Creating a Cookie
Reading a Cookie
Deleting a Cookie
Using Cookies to Remember Login Details
Using Sessions
Creating a Session Variable
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

Specifying the Fields Returned in a Query
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
Displaying Records in a Table with Alternate Row Colors
Working with Prepared Statements
Displaying Summary Search Results and Linking to Full Records
Linking to a Full Record
Displaying a Full Record
Inserting Records
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

Creating an XSL Style Sheet
Specifying an XSL Style Sheet
Using JSP and Xalan to Perform XSL Transformations

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 Handler Class
Creating the Tag Library Descriptor File (TLD)
Using the Tag Library
Creating a Tag to Display the Date
Creating the Tag Handler Class
Creating the Tag Library Descriptor File
Using the Tag Library
Creating a Tag that Accepts Attributes
Creating the Tag Handler Class
Creating the Tag Library Descriptor File
Using the Tag Library
Formatting the Body of a Tag
Creating the Tag Handler Class
Creating the Tag Library Descriptor File
Using the Tag Library
Manipulating the Body of a Tag
Creating the Tag Handler Class
Creating the Tag Library Descriptor File
Using the Tag Library
Using Existing Tag Libraries
Using the JRun Custom Tag Library

Chapter 19 Creating an Employee Directory

Design Requirements
Designing the Employee Directory Database
Creating the Search Form

Searching by Name
Searching by Position
Searching by Department
Processing the Search by Name Request
Processing the Search by Position Request
Processing the Search by Department Request
Administering the Employee Directory
Creating the Insert Form
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 Left Panel
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

Livraison à partir de 0,01 en France métropolitaine
Paiement en ligne SÉCURISÉ
Livraison dans le monde
Retour sous 15 jours
+ d'un million et demi de livres disponibles
satisfait ou remboursé
Satisfait ou remboursé
Paiement sécurisé
modes de paiement
Paiement à l'expédition
partout dans le monde
Livraison partout dans le monde
Service clients sav@commande.eyrolles.com
librairie française
Librairie française depuis 1925
Recevez nos newsletters
Vous serez régulièrement informé(e) de toutes nos actualités.
Inscription