Book description
Internet and World Wide Web How to Program, 4e by market leading authors, Harvey M. Deitel and Paul J. Deitel introduces readers with little or no programming experience to the exciting world of Web-Based applications. This book has been substantially revised to reflect today's Web 2.0 rich Internet application-development methodologies. A comprehensive book that covers the fundamentals needed to program on the Internet, this book provides in-depth coverage of introductory programmming principles, various markup languages (XHTML, Dynamic HTML and XML), several scripting languages (JavaScript, PHP, Ruby/Ruby on Rails and Perl); AJAX, web services, Web Servers (IIS and Apache) and relational databases (MySQL/Apache Derby/Java DB) -- all the skills and tools needed to create dynamic Web-based applications. The book contains comprehensive introductions to ASP.NET 2.0 and JavaServer Faces (JSF) and a new chapter on Adobe Flex 2.0. Hundreds of live-code examples of real applications are throughout the book. The examples are downloadable from the Deitel website once registered and logged in and allow readers to run the applications and see and hear the outputs. The book provides instruction on building Ajax-enabled rich Internet applications that enhance the presentation of online content and give web applications the look and feel of desktop applications. The chapter on Web 2.0 and Internet business exposes readers to a wide range of other topics associated with Web 2.0 applications and businesses After mastering the material in this book, readers will be well prepared to build real-world, industrial strength, Web-based applications. For Internet and Web-based computer programmers, and others in organizations and businesses who need to develop their own Websites and pages.
Table of contents
- Copyright
- Deitel® Series Page
- Deitel Resource Centers
- Preface
- Acknowledgments
- About the Authors
- About Deitel & Associates, Inc.
- Before You Begin
-
1. Introduction
-
1. Introduction to Computers and the Internet
- 1.1. Introduction
- 1.2. What Is a Computer?
- 1.3. Computer Organization
- 1.4. Machine Languages, Assembly Languages and High-Level Languages
- 1.5. History of the Internet and World Wide Web
- 1.6. World Wide Web Consortium (W3C)
- 1.7. Web 2.0
- 1.8. Personal, Distributed and Client/Server Computing
- 1.9. Hardware Trends
- 1.10. Key Software Trend: Object Technology
- 1.11. JavaScript: Object-Based Scripting for the Web
- 1.12. Browser Portability
- 1.13. C, C++ and Java
- 1.14. BASIC, Visual Basic, Visual C++, C# and .NET
- 1.15. Software Technologies
- 1.16. Notes about Internet & World Wide Web How to Program, 4/e
- 1.17. Web Resources
-
Summary
- Section 1.1 Introduction
- Section 1.2 What Is a Computer?
- Section 1.3 Computer Organization
- Section 1.4 Machine Languages, Assembly Languages and High-Level Languages
- Section 1.5 History of the Internet and World Wide Web
- Section 1.6 World Wide Web Consortium (W3C)
- Section 1.7 Web 2.0
- Section 1.8 Personal, Distributed and Client/Server Computing
- Section 1.9 Hardware Trends
- Section 1.10 Key Software Trend: Object Technology
- Section 1.11 JavaScript: Object-Based Scripting for the Web
- Section 1.12 Browser Portability
- Section 1.13 C, C++ and Java
- Section 1.14 BASIC, Visual Basic, Visual C++, C# and .NET
- Section 1.15 Software Technologies
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
2. Web Browser Basics: Internet Explorer and Firefox
- 2.1. Introduction to the Internet Explorer 7 and Firefox 2 Web Browsers
- 2.2. Connecting to the Internet
- 2.3. Internet Explorer 7 and Firefox 2 Features
- 2.4. Customizing Browser Settings
- 2.5. Searching the Internet
- 2.6. Keeping Track of Your Favorite Sites
- 2.7. File Transfer Protocol (FTP)
- 2.8. Online Help
- 2.9. Other Web Browsers
- 2.10. Wrap-Up
- 2.11. Web Resources
-
Summary
- Section 2.1 Introduction to the Internet Explorer 7 and Firefox 2 Web Browsers
- Section 2.2 Connecting to the Internet
- Section 2.3 Internet Explorer 7 and Firefox 2 Features
- Section 2.4 Customizing Browser Settings
- Section 2.5 Searching the Internet
- Section 2.6 Keeping Track of Your Favorite Sites
- Section 2.7 File Transfer Protocol (FTP)
- Section 2.8 Online Help
- Section 2.9 Other Web Browsers
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
3. Dive Into® Web 2.0
- 3.1. Introduction
- 3.2. What Is Web 2.0?
- 3.3. Search
- 3.4. Content Networks
- 3.5. User-Generated Content
- 3.6. Blogging
- 3.7. Social Networking
- 3.8. Social Media
- 3.9. Tagging
- 3.10. Social Bookmarking
- 3.11. Software Development
- 3.12. Rich Internet Applications (RIAs)
- 3.13. Web Services, Mashups, Widgets and Gadgets
- 3.14. Location-Based Services
- 3.15. XML, RSS, Atom, JSON and VoIP
- 3.16. Web 2.0 Monetization Models
- 3.17. Web 2.0 Business Models
- 3.18. Future of the Web
- 3.19. Wrap-Up
- 3.20. Where to Go for More Web 2.0 Information
- 3.21. Web 2.0 Bibliography
- 3.22. Web 2.0 Glossary
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
1. Introduction to Computers and the Internet
-
2. The Ajax Client
-
4. Introduction to XHTML
- 4.1. Introduction
- 4.2. Editing XHTML
- 4.3. First XHTML Example
- 4.4. W3C XHTML Validation Service
- 4.5. Headings
- 4.6. Linking
- 4.7. Images
- 4.8. Special Characters and Horizontal Rules
- 4.9. Lists
- 4.10. Tables
- 4.11. Forms
- 4.12. Internal Linking
- 4.13. meta Elements
- 4.14. Wrap-Up
- 4.15. Web Resources
-
Summary
- Section 4.1 Introduction
- Section 4.2 Editing XHTML
- Section 4.3 First XHTML Example
- Section 4.4 W3C XHTML Validation Service
- Section 4.5 Headings
- Section 4.6 Linking
- Section 4.7 Images
- Section 4.8 Special Characters and Horizontal Rules
- Section 4.9 Lists
- Section 4.10 Tables
- Section 4.11 Forms
- Section 4.12 Internal Linking
- Section 4.13 meta Elements
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
5. Cascading Style Sheets™ (CSS)
- 5.1. Introduction
- 5.2. Inline Styles
- 5.3. Embedded Style Sheets
- 5.4. Conflicting Styles
- 5.5. Linking External Style Sheets
- 5.6. Positioning Elements
- 5.7. Backgrounds
- 5.8. Element Dimensions
- 5.9. Box Model and Text Flow
- 5.10. Media Types
- 5.11. Building a CSS Drop-Down Menu
- 5.12. User Style Sheets
- 5.13. CSS 3
- 5.14. Wrap-Up
- 5.15. Web Resources
-
Summary
- Section 5.2 Inline Styles
- Section 5.3 Embedded Style Sheets
- Section 5.4 Conflicting Styles
- Section 5.5 Linking External Style Sheets
- Section 5.6 Positioning Elements
- Section 5.7 Backgrounds
- Section 5.8 Element Dimensions
- Section 5.9 Box Model and Text Flow
- Section 5.10 Media Types
- Section 5.11 Building a CSS Drop-Down Menu
- Section 5.12 User Style Sheets
- Section 5.13 CSS 3
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
6. JavaScript: Introduction to Scripting
- 6.1. Introduction
- 6.2. Simple Program: Displaying a Line of Text in a Web Page
- 6.3. Modifying Our First Program
- 6.4. Obtaining User Input with prompt Dialogs
- 6.5. Memory Concepts
- 6.6. Arithmetic
- 6.7. Decision Making: Equality and Relational Operators
- 6.8. Wrap-Up
- 6.9. Web Resources
- Summary
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
7. JavaScript: Control Statements I
- 7.1. Introduction
- 7.2. Algorithms
- 7.3. Pseudocode
- 7.4. Control Structures
- 7.5. if Selection Statement
- 7.6. if...else Selection Statement
- 7.7. while Repetition Statement
- 7.8. Formulating Algorithms: Counter-Controlled Repetition
- 7.9. Formulating Algorithms: Sentinel-Controlled Repetition
- 7.10. Formulating Algorithms: Nested Control Statements
- 7.11. Assignment Operators
- 7.12. Increment and Decrement Operators
- 7.13. Wrap-Up
- 7.14. Web Resources
-
Summary
- Section 7.2 Algorithms
- Section 7.3 Pseudocode
- Section 7.4 Control Structures
- Section 7.5 if Selection Statement
- Section 7.6 if...else Selection Statement
- Section 7.7 while Repetition Statement
- Section 7.8 Formulating Algorithms: Counter-Controlled Repetition
- Section 7.9 Formulating Algorithms: Sentinel-Controlled Repetition
- Section 7.10 Formulating Algorithms: Nested Control Statements
- Section 7.11 Assignment Operators
- Section 7.12 Increment and Decrement Operators
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
8. JavaScript: Control Statements II
- 8.1. Introduction
- 8.2. Essentials of Counter-Controlled Repetition
- 8.3. for Repetition Statement
- 8.4. Examples Using the for Statement
- 8.5. switch Multiple-Selection Statement
- 8.6. do...while Repetition Statement
- 8.7. break and continue Statements
- 8.8. Labeled break and continue Statements
- 8.9. Logical Operators
- 8.10. Summary of Structured Programming
- 8.11. Wrap-Up
- 8.12. Web Resources
-
Summary
- Section 8.2 Essentials of Counter-Controlled Repetition
- Section 8.3 for Repetition Statement
- Section 8.4 Examples Using the for Statement
- Section 8.5 switch Multiple-Selection Statement
- Section 8.6 do...while Repetition Statement
- Section 8.7 break and continue Statements
- Section 8.8 Labeled break and continue Statements
- Section 8.9 Logical Operators
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
9. JavaScript: Functions
- 9.1. Introduction
- 9.2. Program Modules in JavaScript
- 9.3. Programmer-Defined Functions
- 9.4. Function Definitions
- 9.5. Random Number Generation
- 9.6. Example: Game of Chance
- 9.7. Another Example: Random Image Generator
- 9.8. Scope Rules
- 9.9. JavaScript Global Functions
- 9.10. Recursion
- 9.11. Recursion vs. Iteration
- 9.12. Wrap-Up
- 9.13. Web Resources
-
Summary
- Section 9.1 Introduction
- Section 9.2 Program Modules in JavaScript
- Section 9.3 Programmer-Defined Functions
- Section 9.4 Function Definitions
- Section 9.5 Random Number Generation
- Section 9.6 Example: Game of Chance
- Section 9.7 Another Example: Random Image Generator
- Section 9.8 Scope Rules
- Section 9.9 JavaScript Global Functions
- Section 9.10 Recursion
- Section 9.11 Recursion vs. Iteration
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
10. JavaScript: Arrays
- 10.1. Introduction
- 10.2. Arrays
- 10.3. Declaring and Allocating Arrays
- 10.4. Examples Using Arrays
- 10.5. Random Image Generator Using Arrays
- 10.6. References and Reference Parameters
- 10.7. Passing Arrays to Functions
- 10.8. Sorting Arrays
- 10.9. Searching Arrays: Linear Search and Binary Search
- 10.10. Multidimensional Arrays
- 10.11. Building an Online Quiz
- 10.12. Wrap-Up
- 10.13. Web Resources
-
Summary
- Section 10.1 Introduction
- Section 10.2 Arrays
- Section 10.3 Declaring and Allocating Arrays
- Section 10.4 Examples Using Arrays
- Section 10.5 Random Image Generator Using Arrays
- Section 10.6 References and Reference Parameters
- Section 10.7 Passing Arrays to Functions
- Section 10.8 Sorting Arrays
- Section 10.9 Searching Arrays: Linear Search and Binary Search
- Section 10.10 Multidimensional Arrays
- Section 10.11 Building an Online Quiz
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
11. JavaScript: Objects
- 11.1. Introduction
- 11.2. Introduction to Object Technology
- 11.3. Math Object
- 11.4. String Object
- 11.5. Date Object
- 11.6. Boolean and Number Objects
- 11.7. document Object
- 11.8. window Object
- 11.9. Using Cookies
- 11.10. Final JavaScript Example
- 11.11. Using JSON to Represent Objects
- 11.12. Wrap-Up
- 11.13. Web Resources
-
Summary
- Section 11.1 Introduction
- Section 11.2 Introduction to Object Technology
- Section 11.3 Math Object
- Section 11.4 String Object
- Section 11.5 Date Object
- Section 11.6 Boolean and Number Objects
- Section 11.7 document Object
- Section 11.8 window Object
- Section 11.9 Using Cookies
- Section 11.10 Final JavaScript Example
- Section 11.11 Using JSON to Represent Objects
- Terminology
- Self-Review Exercise
- Answers to Self-Review Exercise
- Exercises
- Special Section: Challenging String-Manipulation Exercises
-
12. Document Object Model (DOM): Objects and Collections
- 12.1. Introduction
- 12.2. Modeling a Document: DOM Nodes and Trees
- 12.3. Traversing and Modifying a DOM Tree
- 12.4. DOM Collections
- 12.5. Dynamic Styles
- 12.6. Summary of the DOM Objects and Collections
- 12.7. Wrap-Up
- 12.8. Web Resources
- Summary
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
13. JavaScript: Events
- 13.1. Introduction
- 13.2. Registering Event Handlers
- 13.3. Event onload
- 13.4. Event onmousemove, the event Object and this
- 13.5. Rollovers with onmouseover and onmouseout
- 13.6. Form Processing with onfocus and onblur
- 13.7. More Form Processing with onsubmit and onreset
- 13.8. Event Bubbling
- 13.9. More Events
- 13.10. Wrap-Up
- 13.11. Web Resources
-
Summary
- Section 13.1 Introduction
- Section 13.2 Registering Event Handlers
- Section 13.3 Event onload
- Section 13.4 Event onmousemove, the event Object and this
- Section 13.5 Rollovers with onmouseover and onmouseout
- Section 13.6 Form Processing with onfocus and onblur
- Section 13.7 More Form Processing with onsubmit and onreset
- Section 13.8 Event Bubbling
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
14. XML and RSS
- 14.1. Introduction
- 14.2. XML Basics
- 14.3. Structuring Data
- 14.4. XML Namespaces
- 14.5. Document Type Definitions (DTDs)
- 14.6. W3C XML Schema Documents
- 14.7. XML Vocabularies
- 14.8. Extensible Stylesheet Language and XSL Transformations
-
14.9. Document Object Model (DOM)
- Overview of the body Element
- Global Script Variables
- Function loadXMLDocument
- Function buildHTML
- Function displayDoc
- Functions processFirstChild and processLastChild
- Functions processNextSibling and processPreviousSibling
- Function processParentNode
- Common DOM Properties
- Locating Data in XML Documents with XPath
- 14.10. RSS
- 14.11. Wrap-Up
- 14.12. Web Resources
-
Summary
- Section 14.1 Introduction
- Section 14.2 XML Basics
- Section 14.3 Structuring Data
- Section 14.4 XML Namespaces
- Section 14.5 Document Type Definitions (DTDs)
- Section 14.6 W3C XML Schema Documents
- Section 14.7 XML Vocabularies
- Section 14.8 Extensible Stylesheet Language and XSL Transformations
- Section 14.9 Document Object Model (DOM)
- Section 14.10 RSS
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
15. Ajax-Enabled Rich Internet Applications
- 15.1. Introduction
- 15.2. Traditional Web Applications vs. Ajax Applications
- 15.3. Rich Internet Applications (RIAs) with Ajax
- 15.4. History of Ajax
- 15.5. “Raw” Ajax Example Using the XMLHttpRequest Object
- 15.6. Using XML and the DOM
- 15.7. Creating a Full-Scale Ajax-Enabled Application
- 15.8. Dojo Toolkit
- 15.9. Wrap-Up
- 15.10. Web Resources
-
Summary
- Section 15.1 Introduction
- Section 15.2 Traditional Web Applications vs. Ajax Applications
- Section 15.3 Rich Internet Applications (RIAs) with Ajax
- Section 15.4 History of Ajax
- Section 15.5 “Raw” Ajax Example using the XMLHttpRequest Object
- Section 15.6 Using XML and the DOM
- Section 15.7 Creating a Full-Scale Ajax-Enabled Application
- Section 15.8 Dojo Toolkit
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
4. Introduction to XHTML
-
3. Rich Internet Application Client Technologies
-
16. Adobe® Flash® CS3
- 16.1. Introduction
- 16.2. Flash Movie Development
-
16.3. Learning Flash with Hands-On Examples
- 16.3.1. Creating a Shape with the Oval Tool
- 16.3.2. Adding Text to a Button
- 16.3.3. Converting a Shape into a Symbol
- 16.3.4. Editing Button Symbols
- 16.3.5. Adding Keyframes
- 16.3.6. Adding Sound to a Button
- 16.3.7. Verifying Changes with Test Movie
- 16.3.8. Adding Layers to a Movie
- 16.3.9. Animating Text with Tweening
- 16.3.10. Adding a Text Field
- 16.3.11. Adding ActionScript
- 16.4. Publishing Your Flash Movie
- 16.5. Creating Special Effects with Flash
- 16.6. Creating a Website Splash Screen
- 16.7. ActionScript
- 16.8. Wrap-Up
- 16.9. Web Resources
-
Summary
- Section 16.1 Introduction
- Section 16.2 Flash Movie Development
- Section 16.3 Learning Flash with Hands-On Examples
- Section 16.3.1 Creating a Shape with the Oval Tool
- Section 16.3.2 Adding Text to a Button
- Section 16.3.3 Converting a Shape into a Symbol
- Section 16.3.4 Editing Button Symbols
- Section 16.3.5 Adding Keyframes
- Section 16.3.6 Adding Sound to a Button
- Section 16.3.7 Verifying Changes with Test Movie
- Section 16.3.8 Adding Layers to a Movie
- Section 16.3.9 Animating Text with Tweening
- Section 16.3.10 Adding a Text Field
- Section 16.3.11 Adding ActionScript
- Section 16.4 Publishing Your Flash Movie
- Section 16.5.1 Importing and Manipulating Bitmaps
- Section 16.5.2 Creating an Advertisement Banner with Masking
- Section 16.5.3 Adding Online Help to Forms
- Section 16.6 Creating a Website Splash Screen
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
17. Adobe® Flash® CS3: Building an Interactive Game
- 17.1. Introduction
- 17.2. Object-Oriented Programming
- 17.3. Objects in Flash
- 17.4. Cannon Game: Preliminary Instructions and Notes
- 17.5. Adding a Start Button
- 17.6. Creating Moving Objects
- 17.7. Adding the Rotating Cannon
- 17.8. Adding the Cannonball
- 17.9. Adding Sound and Text Objects to the Movie
- 17.10. Adding the Time Counter
- 17.11. Detecting a Miss
- 17.12. Adding Collision Detection
- 17.13. Finishing the Game
- 17.14. ActionScript 3.0 Elements Introduced in This Chapter
-
Summary
- Section 17.1 Introduction
- Section 17.2 Object-Oriented Programming
- Section 17.3 Objects in Flash
- Section 17.4 Cannon Game: Preliminary Instructions and Notes
- Section 17.5 Adding a Start Button
- Section 17.6 Creating Moving Objects
- Section 17.7 Adding the Rotating Cannon
- Section 17.8 Adding the Cannonball
- Section 17.9 Adding Sound and Text Objects to the Movie
- Section 17.10 Adding the Time Counter
- Section 17.12 Adding Collision Detection
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
18. Adobe® Flex™ 2 and Rich Internet Applications
- 18.1. Introduction
- 18.2. Flex Platform Overview
- 18.3. Creating a Simple User Interface
- 18.4. Accessing XML Data from Your Application
- 18.5. Interacting with Server-Side Applications
- 18.6. Customizing Your User Interface
- 18.7. Creating Charts and Graphs
- 18.8. Connection-Independent RIAs on the Desktop: Adobe Integrated Runtime (AIR)
- 18.9. Flex 3 Beta
- 18.10. Wrap-Up
- 18.11. Web Resources
-
Summary
- Section 18.1 Introduction
- Section 18.2 Flex Platform Overview
- Section 18.3 Creating a Simple User Interface
- Section 18.4 Accessing XML Data from Your Application
- Section 18.5 Interacting with Server-Side Applications
- Section 18.6 Customizing Your User Interface
- Section 18.7 Creating Charts and Graphs
- Section 18.8 Connection-Independent RIAs on the Desktop: Adobe Integrated Runtime (AIR)
- Section 18.9 Flex 3 Beta
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
19. Microsoft® Silverlight™ and Rich Internet Applications
- 19.1. Introduction
- 19.2. Platform Overview
- 19.3. Silverlight 1.0 Installation and Overview
- 19.4. Creating a Movie Viewer for Silverlight 1.0
- 19.5. Embedding Silverlight in HTML
- 19.6. Silverlight Streaming
- 19.7. Silverlight 1.1 Installation and Overview
- 19.8. Creating a Cover Viewer for Silverlight 1.1 Alpha
- 19.9. Building an Application with Third-Party Controls
- 19.10. Consuming a Web Service
- 19.11. Silverlight Demos, Games and Web Resources
- 19.12. Wrap-Up
-
Summary
- Section 19.1 Introduction
- Section 19.2 Platform Overview
- Section 19.3 Silverlight 1.0 Installation and Overview
- Section 19.4 Creating a Movie Viewer for Silverlight 1.0
- Section 19.4.1 Creating a User Interface In XAML Using Expression Blend
- Section 19.4.2 Using Storyboards
- Section 19.4.3 Creating Controls
- Section 19.4.4 Using JavaScript for Event Handling and DOM Manipulation
- Section 19.5 Embedding Silverlight in HTML
- Section 19.6 Silverlight Streaming
- Section 19.7 Silverlight 1.1 Installation and Overview
- Section 19.8 Creating a Cover Viewer for Silverlight 1.1 Alpha
- Section 19.9 Building an Application with Third-Party Controls
- Section 19.10 Consuming a Web Service
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
20. Adobe® Dreamweaver® CS3
- 20.1. Introduction
- 20.2. Adobe Dreamweaver CS3
- 20.3. Text Styles
- 20.4. Images and Links
- 20.5. Symbols and Lines
- 20.6. Tables
- 20.7. Forms
- 20.8. Scripting in Dreamweaver
- 20.9. Spry Framework for Creating Ajax Applications
- 20.10. Site Management
- 20.11. Wrap-Up
- 20.12. Web Resources
-
Summary
- Section 20.1 Introduction
- Section 20.2 Adobe Dreamweaver CS3
- Section 20.3 Text Styles
- Section 20.4 Images and Links
- Section 20.5 Symbols and Lines
- Section 20.6 Tables
- Section 20.7 Forms
- Section 20.8 Scripting in Dreamweaver
- Section 20.9 Spry Framework for Creating Ajax Applications
- Section 20.10 Site Management
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
16. Adobe® Flash® CS3
-
4. Rich Internet Application Server Technologies
-
21. Web Servers (IIS and Apache)
- 21.1. Introduction
- 21.2. HTTP Transactions
- 21.3. Multitier Application Architecture
- 21.4. Client-Side Scripting versus Server-Side Scripting
- 21.5. Accessing Web Servers
- 21.6. Microsoft Internet Information Services (IIS)
- 21.7. Apache HTTP Server
- 21.8. Requesting Documents
- 21.9. Web Resources
- Summary
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
22. Database: SQL, MySQL, ADO.NET 2.0 and Java DB
- 22.1. Introduction
- 22.2. Relational Databases
- 22.3. Relational Database Overview: A books Database
- 22.4. SQL
- 22.5. MySQL
- 22.6. Instructions for Installing MySQL
- 22.7. Instructions for Setting Up a MySQL User Account
- 22.8. Creating a Database in MySQL
- 22.9. ADO.NET Object Model
- 22.10. Java DB/Apache Derby
- 22.11. Wrap-Up
- 22.12. Web Resources
-
Summary
- Section 22.1 Introduction
- Section 22.2 Relational Databases
- Section 22.4.1 Basic SELECT Query
- Section 22.4.2 WHERE Clause
- Section 22.4.3 ORDER BY Clause
- Section 22.4.4 Merging Data from Multiple Tables: INNER JOIN
- Section 22.4.5 INSERT Statement
- Section 22.4.6 UPDATE Statement
- Section 22.4.7 DELETE Statement
- Section 22.5 MySQL
- Section 22.9 ADO.NET Object Model
- Section 22.10 Java DB/Apache Derby
- Terminology
- Self-Review Exercise
- Answers to Self-Review Exercise
- Exercises
-
23. PHP
- 23.1. Introduction
- 23.2. PHP Basics
- 23.3. String Processing and Regular Expressions
- 23.4. Form Processing and Business Logic
- 23.5. Connecting to a Database
- 23.6. Using Cookies
- 23.7. Dynamic Content
- 23.8. Operator Precedence Chart
- 23.9. Wrap-Up
- 23.10. Web Resources
- Summary
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
24. Ruby on Rails
- 24.1. Introduction
- 24.2. Ruby
- 24.3. Rails Framework
- 24.4. ActionController and ActionView
- 24.5. A Database-Driven Web Application
- 24.6. Case Study: Message Forum
- 24.7. Script.aculo.us
- 24.8. Wrap-Up
- 24.9. Web Resources
- Summary
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
25. ASP.NET 2.0 and ASP.NET Ajax
- 25.1. Introduction
-
25.2. Creating and Running a Simple Web Form Example
- 25.2.1. Examining an ASPX File
- 25.2.2. Examining a Code-Behind File
- 25.2.3. Relationship Between an ASPX File and a Code-Behind File
- 25.2.4. How the Code in an ASP.NET Web Page Executes
- 25.2.5. Examining the XHTML Generated by an ASP.NET Application
-
25.2.6. Building an ASP.NET Web Application
- Step 1: Creating the Website
- Step 2: Examining the Solution Explorer of the Newly Created Project
- Step 3: Examining the Toolbox in Visual Web Developer
- Step 4: Examining the Web Forms Designer
- Step 5: Examining the Code-Behind File in the IDE
- Step 6: Renaming the ASPX File
- Step 7: Renaming the Class in the Code-Behind File and Updating the ASPX File
- Step 8: Changing the Title of the Page
- Step 9: Designing the Page
- Step 10: Adding Page Logic
- Step 11: Running the Program
- Windows Firewall Settings
- 25.3. Web Controls
- 25.4. Session Tracking
-
25.5. Case Study: Connecting to a Database in ASP.NET
-
25.5.1. Building a Web Form That Displays Data from a Database
- Step 1: Creating the Project
- Step 2: Creating the Form for User Input
- Step 3: Adding a GridView Control to the Web Form
- Step 4: Adding a Database to an ASP.NET Web Application
- Step 5: Binding the GridView to the Messages Table of the Guestbook Database
- Step 6: Modifying the Columns of the Data Source Displayed in the GridView
- Step 7: Modifying the Way the SqlDataSource Control Inserts Data
- ASPX File for a Web Form That Interacts with a Database
- 25.5.2. Modifying the Code-Behind File for the Guestbook Application
-
25.5.1. Building a Web Form That Displays Data from a Database
-
25.6. Case Study: Secure Books Database Application
- 25.6.1. Examining the Completed Secure Books Database Application
-
25.6.2. Creating the Secure Books Database Application
- Step 1: Creating the Website
- Step 2: Setting Up the Website’s Folders
- Step 3: Configuring the Application’s Security Settings
- Step 4: Examining the Autogenerated Web.config Files
- Step 5: Creating a Master Page
- Step 6: Creating a Content Page
- Step 7: Adding a CreateUserWizard Control to a Content Page
- Step 8: Creating a Login Page
- Step 9: Creating a Content Page That Only Authenticated Users Can Access
- Step 10: Customizing the Secure Page
- Step 11: Connecting the CreateUserWizard and Login Controls to the Secure Page
- Step 12: Generating a DataSet Based on the Books.mdf Database
- Step 13: Creating and Configuring an AuthorsTableAdapter
- Step 14: Creating and Configuring a TitlesTableAdapter
- Step 15: Adding a DropDownList Containing Authors’ First and Last Names
- Step 16: Creating a GridView to Display the Selected Author’s Books
- Step 17: Examining the Markup in Books.aspx
- 25.7. ASP.NET Ajax
- 25.8. Wrap-Up
- 25.9. Web Resources
-
Summary
- Section 25.1 Introduction
- Section 25.2 Creating and Running a Simple Web Form Example
- Section 25.2.1 Examining an ASPX File
- Section 25.2.2 Examining a Code-Behind File
- Section 25.2.3 Relationship Between an ASPX File and a Code-Behind File
- Section 25.2.4 How the Code in an ASP.NET Web Page Executes
- Section 25.2.5 Examining the XHTML Generated by an ASP.NET Application
- Section 25.2.6 Building an ASP.NET Web Application
- Section 25.3 Web Controls
- Section 25.3.1 Text and Graphics Controls
- Section 25.3.2 AdRotator Control
- Section 25.3.3 Validation Controls
- Section 25.4 Session Tracking
- Section 25.4.1 Cookies
- Section 25.4.2 Session Tracking with HttpSessionState
- Section 25.5 Case Study: Connecting to a Database in ASP.NET
- Section 25.5.1 Building a Web Form That Displays Data from a Database
- Section 25.5.2 Modifying the Code-Behind File for the Guestbook Application
- Section 25.6.1 Examining the Completed Secure Books Database Application
- Section 25.6.2 Creating the Secure Books Database Application
- Section 25.7 ASP.NET Ajax
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
26. JavaServer™ Faces Web Applications
- 26.1. Introduction
- 26.2. Java Web Technologies
-
26.3. Creating and Running a Simple Application in Netbeans
- 26.3.1. Examining a JSP File
- 26.3.2. Examining a Page Bean File
- 26.3.3. Event-Processing Life Cycle
- 26.3.4. Relationship Between the JSP and Page Bean Files
- 26.3.5. Examining the XHTML Generated by a Java Web Application
-
26.3.6. Building a Web Application in Netbeans
- Step 1: Creating the Web Application Project
- Step 2: Examining the Visual Editor Window of the New Project
- Step 3: Examining the Palette in Netbeans
- Step 4: Examining the Projects Window
- Step 5: Examining the JSP and Java Files in the IDE
- Step 6: Renaming the JSP and JSF Files
- Step 7: Changing the Title of the Page
- Step 8: Designing the Page
- Step 9: Adding Page Logic
- Step 10: Examining the Outline Window
- Step 11: Running the Application
- 26.4. JSF Components
- 26.5. Session Tracking
- 26.6. Wrap-Up
- 26.7. Web Resources
-
Summary
- Section 26.1 Introduction
-
Section 26.2 Java Web Technologies
- Section 26.2.1 Servlets
- Section 26.2.2 JavaServer Pages
- Section 26.2.3 JavaServer Faces
- Section 26.2.4 Web Technologies in Netbeans
- Section 26.3.1 Examining a JSP File
- Section 26.3.2 Examining a Page Bean File
- Section 26.3.3 Event-Processing Life Cycle
- Section 26.3.4 Relationship Between the JSP and Page Bean Files
- Section 26.3.6 Building a Web Application in Netbeans
- Section 26.4.1 Text and Graphics Components
- Section 26.4.2 Validation Using Validator Components and Custom Validators
- Section 26.5 Session Tracking
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
27. Ajax-Enabled JavaServer™ Faces Web Applications
- 27.1. Introduction
-
27.2. Accessing Databases in Web Applications
-
27.2.1. Building a Web Application That Displays Data from a Database
- Step 1: Creating the Project
- Step 2: Creating the Form for User Input
- Step 3: Adding a Table Component to the Page
- Step 4: Creating a Java DB Database
- Step 5: Adding a Table and Data to the AddressBook Database
- Step 6: Binding the Table Component to the Addresses Table of the AddressBook Database
- Step 7: Modifying addressesRowSet’s SQL Statement
- Step 8: Adding Validation
- JSP File for a Web Page That Interacts with a Database
- Session Bean for the AddressBook Application
- 27.2.2. Modifying the Page Bean File for the AddressBook Application
-
27.2.1. Building a Web Application That Displays Data from a Database
- 27.3. Ajax-Enabled JSF Components
- 27.4. AutoComplete Text Field and Virtual Forms
- 27.5. Google Maps Map Viewer Component
- 27.6. Wrap-Up
- 27.7. Web Resources
- Summary
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
28. Web Services
- 28.1. Introduction
- 28.2. Java Web Services Basics
-
28.3. Creating, Publishing, Testing and Describing a Web Service
- 28.3.1. Creating a Web Application Project and Adding a Web Service Class in Netbeans
- 28.3.2. Defining the HugeInteger Web Service in Netbeans
- 28.3.3. Publishing the HugeInteger Web Service from Netbeans
- 28.3.4. Testing the HugeInteger Web Service with Sun Java System Application Server’s Tester Web page
- 28.3.5. Describing a Web Service with the Web Service Description Language (WSDL)
- 28.4. Consuming a Web Service
- 28.5. SOAP
- 28.6. Session Tracking in Web Services
- 28.7. Consuming a Database-Driven Web Service from a Web Application
- 28.8. Passing an Object of a User-Defined Type to a Web Service
-
28.9. REST-Based Web Services in ASP.NET
- 28.9.1. REST-Based Web Service Functionality
-
28.9.2. Creating an ASP.NET REST-Based Web Service
- Step 1: Creating the Project
- Step 2: Examining the Newly Created Project
- Step 3: Modifying and Renaming the Code-Behind File
- Step 4 Creating an Item Class
- Step 5: Examining the ASMX File
- Step 6: Modifying the ASMX File
- Step 7: Renaming the ASMX File
- Step 8: Changing the Web.Config File to allow REST requests
- Step 9: Adding the System.Web.Extensions Reference
-
28.9.3. Adding Data Components to a Web Service
- Step 1: Adding a DataSet to the Project
- Step 2: Selecting the Data Source and Creating a Connection
- Step 3: Opening the Query Builder and Adding the Events Table from Calendar.mdf
- Step 4: Configuring a SELECT Query to Obtain a Specific Event
- Step 5: Adding Another Query to the EventsTableAdapter for the CalendarDataSet
- Step 6: Configuring an UPDATE Statement to Modify a Description of a Specific Event
- Step 7: Adding a getItemsByDate Query
- Step 8: Testing the Web Service
- 28.10. Wrap-Up
- 28.11. Web Resources
-
Summary
- Section 28.1 Introduction
- Section 28.2 Java Web Services Basics
- Section 28.3.1 Creating a Web Application Project and Adding a Web Service Class in Netbeans
- Section 28.3.2 Defining the HugeInteger Web Service in Netbeans
- Section 28.3.3 Publishing the HugeInteger Web Service from Netbeans
- Section 28.3.4 Testing the HugeInteger Web Service with Sun Java System Application Server’s Tester Web Page
- Section 28.3.5 Describing a Web Service with the Web Service Description Language (WSDL)
- Section 28.4 Consuming a Web Service
- Section 28.4.1 Creating a Client in Netbeans to Consume the HugeInteger Web Service
- Section 28.5 SOAP
- Section 28.6 Session Tracking in Web Services
- Section 28.6.1 Creating a Blackjack Web Service
- Section 28.6.2 Consuming the Blackjack Web Service
- Section 28.8 Passing an Object of a User-Defined Type to a Web Service
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
-
21. Web Servers (IIS and Apache)
-
5. Appendices
- A. XHTML Special Characters
- B. XHTML Colors
- C. JavaScript Operator Precedence Chart
- D. ASCII Character Set
-
E. Number Systems
- E.1. Introduction
- E.2. Abbreviating Binary Numbers as Octal and Hexadecimal Numbers
- E.3. Converting Octal and Hexadecimal Numbers to Binary Numbers
- E.4. Converting from Binary, Octal or Hexadecimal to Decimal
- E.5. Converting from Decimal to Binary, Octal or Hexadecimal
- E.6. Negative Binary Numbers: Two’s Complement Notation
-
Summary
- Section E.1 Introduction
- Section E.2 Abbreviating Binary Numbers as Octal and Hexadecimal Numbers
- Section E.3 Converting Octal and Hexadecimal Numbers to Binary Numbers
- Section E.4 Converting from Binary, Octal or Hexadecimal to Decimal
- Section E.5 Converting from Decimal to Binary, Octal or Hexadecimal
- Section E.6 Negative Binary Numbers: Two’s Complement Notation
- Terminology
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
- F. Unicode®
Product information
- Title: Internet & World Wide Web: How to Program, Fourth Edition
- Author(s):
- Release date: September 2007
- Publisher(s): Pearson
- ISBN: 9780136085645
You might also like
video
React - The Complete Guide (Includes Hooks, React Router, and Redux) - Second Edition
**This course is now updated for the latest version of React—React 18** React.js is the most …
audiobook
Fall in Love with the Problem, Not the Solution
Unicorns-companies that reach a valuation of more than $1 billion-are rare. Uri Levine has built two. …
video
Learn Flutter and Dart to Build iOS and Android Apps (2023)
What makes Flutter the best framework to build mobile apps? With Flutter, you can build mobile …
video
Microsoft Power BI - The Complete Masterclass [2023 EDITION]
Microsoft Power BI is an interactive data visualization software primarily focusing on business intelligence, part of …