JSP and XML: Integrating XML and Web Services in Your JSP Application

Paperback (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $7.47
Usually ships in 1-2 business days
(Save 86%)
Other sellers (Paperback)
  • All (7) from $7.47   
  • New (2) from $61.26   
  • Used (5) from $7.47   
Close
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$61.26
Seller since 2011

Feedback rating:

(891)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
Brand new and unread! Join our growing list of satisfied customers!

Ships from: Phoenix, MD

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
$61.27
Seller since 2014

Feedback rating:

(4)

Condition: New
New

Ships from: Idyllwild, CA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
Page 1 of 1
Showing All
Close
Sort by

Overview

The first Internet revolution was all about delivering information to people. We are now in the second revolution, which focuses on delivering information to systems. XML is the tool that makes this new revolution a reality, and Web services are the methods by which businesses will drive system-to-system communication. JSP(TM) and XML takes you beyond the basics, giving you practical advice and in-depth coverage. In the book, you'll learn the technologies and techniques needed to create your own Web services for use in JSP applications. Written by programmers for programmers, the book will help you successfully utilize these exciting technologies with minimal hassle and maximum speed.

In JSP™ and XML you will:

  • Learn how to use XML, XSLT, and XPath in your JSP site
  • Program SAX to speed up your XML document processing
  • Understand DOM to learn the W3C standard method of working with XML
  • Coordinate cross-browser client-side XML utilization
  • Understand the Web services alphabet
  • Learn how to leverage Web services to simplify access to your data
  • Learn how SOAP, WSDL, and UDDI integrate into Web Services
  • Use JDOM and dom4J to easily work with XML files
  • Design a balanced JSP site using XML
  • Expand your knowledge of JSP to add new functionality to your Web pages
  • Learn how to practically apply Servlet filters and listeners to a Web site
  • Build dynamic JSP pages that can self- modify, making sites easier to maintain
  • Understand how the new JSP XML syntax works
  • Review the basics of database access within JSP
  • Learn JSP tag library design and how tag libraries simplify using XML and Web Services

0672323540B04092002

Read More Show Less

Product Details

  • ISBN-13: 9780672323546
  • Publisher: Addison-Wesley
  • Publication date: 3/28/2002
  • Pages: 592
  • Product dimensions: 7.30 (w) x 9.20 (h) x 1.30 (d)

Meet the Author

Casey Kochmer is a co-founder of the JSP Insider Web site. As President of Amberjack Software LLC, Casey is a JavaServer Pages, HTML, XHTML, XML, DHTML and Web service specialist. He was previously a senior programmer, trainer, and Internet expert for Starling Consulting, where he mentored users in JavaServer Pages (JSP), Active Server Pages (ASP), XML usage, and Internet practices. His mantra is that a project should implement usable and maintainable technology rather than using the latest technology for technology's sake.

Erica Frandsen is an XML, ASP, and SQL Server expert. Experienced in TCP/IP networking, she is a founder of Sound Home Networks. While working as a network consultant, she installs, configures, and maintains networks for clients. Previously Erica worked as a programmer and consultant for Starling Consulting, where she designed ASP and SQL systems using XML. Earlier in her career she used these same technologies for the creation of an on-line tax paying system for businesses in Washington state. She was also the Webmaster for several sites.

0672323540AB03282002

Read More Show Less

Table of Contents

Introduction.

I. DATA, XML, AND WEB SERVICES INTRODUCTION.

1. Integrating JSP and Data.

Using JSP with a Database.

Entering the Data.

Reviewing the Code for Entering Data.

Viewing the Data.

Other Considerations.

Connection Pooling.

Testing Components.

Testing for Scale.

Basic Design Concepts.

Using a Tag library.

Summary.

2. Introduction to XML/XSL.

What Is XML?

Rules of XML.

Tags and Elements.

The XML Declaration.

Document Type Declaration.

Schemas.

Character Entities.

CDATA Sections.

Comments.

Well-Formed and Validated Documents.

On to Using XML.

Processing.

XSL.

Stylesheet Linking.

Namespaces.

Templates.

Stylesheet Errors.

Whitespace and Encoding.

Entity Declarations.

Trees, Nodes, and Family.

XPath.

Summary.

3. Understanding Web Services.

What Is a Web Service?

Crystal Ball Readings.

The ABCs of Web Services.

The Basic Building Blocks.

Service Management Initiatives.

Java APIs.

How to Use a Web Service.

Using SOAP.

Roaming the Internet.

Summary.

II. INTEGRATING JSP AND XML.

4. A Quick Start to JSP and XML Together.

The Relationship Between XML and JSP.

A Warning.

JAXP, Xerces, and Xalan.

JSP and XML: An Overview.

Java XML/XSL APIs.

DOM (XML Document Object Model).

SAX (XML Parser).

JDOM (XML Document Representation).

dom4j (XML Document Representation).

JAXB (Parser and XML Document Representation).

Summary.

5. Using DOM.

What Is the DOM?

Strengths of DOM.

Weaknesses of DOM.

Nodes and Tree Structure.

The Document Node.

Programming with DOM.

Attributes.

Namespaces.

Removing a Node.

Moving Nodes.

Copying and Appending Nodes.

Programmatically Creating an XML Document.

Moving Nodes Between Documents.

TreeWalker.

NodeIterator.

Ranges.

JDOM, dom4j, and Deferred DOM.

Summary.

6. Programming SAX.

What Is SAX?

The Workings of SAX.

SAX Interfaces.

Downsides to SAX.

Differences Between SAX1 and SAX2.

First SAX Example.

Characters and Ignorable Whitespace.

Processing Versus Validation.

Characters Revisited.

Error Handling.

Ignorable Whitespace.

Entity References.

The Document Locator.

Breaking the System to See How It Works.

Processing Versus Validation Revisited.

Using SAX to Output HTML.

Summary.

7. Successfully Using JSP and XML in an Application.

Using a Java Representation of an XML Document.

Why Not Just Use SAX or DOM?

Installing JDOM and dom4j.

JDOM.

dom4j.

Notes.

Why Both JDOM and dom4j?

JDOM and dom4j: A Quick Comparison.

Common Ways to Use XML.

Using a Database with XML.

XML Initialization Files.

Storing the Initialization Data.

Using a Listener to Store the DatabaseParameter Object.

Using a Java XML Model.

Threading Issues.

Getting the Row Count.

XML and the WebRowSet.

Building a dom4j Helper Class.

Creating a Banner Handler.

Creating a Test JSP Page.

Using a Java Representation of an XML Document.

Using JAXB.

HashMap Versus Java XML Representation.

Pulling in XML Files.

Defining an XML File.

Pondering XML Design.

Reading XML Files and Creating New Output.

Using JDOM.

Building the Final JSP Page.

Summary.

8. Integrating JSP and Web Services.

Thinking in JSP and Web Services.

Tag Libraries Versus Web Services.

Using Tag Libraries to Access a Web Service.

Integrating a Web Service into a JSP Page.

A Tag Library/Service Warning.

Fixing Some Network Issues.

Web Service Reliability.

When Should You Build Your Own Web Service?

JSP Pages Versus Web Service.

Building a Corporate Web Service.

Goal of This Web Service Example.

Realities of Building a Web Service.

Setting Up the Example.

Initializing Data.

Accessing Application Data.

Building the Actual Web Service.

Deploying a Web Service.

Where Is the WSDL?

Writing a JSP Page to Deploy the Descriptor File.

More on Security.

Building a Page to Access the Service.

Apache SOAP Help.

Summary.

9. Advanced JSP and XML Techniques.

Accessing Web Services from a Browser.

Using an Applet.

Handling Large XML Documents.

JDOM.

dom4j.

Handling Special Characters and Encoding.

Using XML Tag Libraries.

XSL Tag Library.

XTags Library for XML.

Summary.

III. BUILDING JSP SITES TO USE XML.

10. Using XSL/JSP in Web Site Design.

Handling XML Files Directly.

How Servlet Mappings Work.

Building an XML Servlet Handler.

Building a SAX Reader.

Creating a Servlet to Process XML Files.

Register the Servlet.

Building the Error Page.

Creating Some Test Files.

Accessing XML Directly.

Summary.

11. Using XML in Reporting Systems.

Architecture of Reporting Systems.

When to Use XML with Reports.

Data Source for Reports.

Creating Database Data.

ResultSet to XML.

What It Does.

Bringing It All Together.

The Sorting Table Stylesheet.

The Cross Tab Stylesheet.

Summary.

12. Advanced XML in Reporting Systems.

Multiple-Page Reports.

The JSP for the Multiple-Page Report.

The Stylesheet for the Multiple-Page Report.

Reports on Data with One-to-Many Relationships.

The JSP for the One-to-Many Report.

The Stylesheet for the One-to-Many Report.

Real-World Reporting Systems.

Well-Formed Documents Revisited.

Summary.

13. Browser Considerations with XML.

Client-Side XML and Browser Support.

Client-Side JavaScript and XML.

The JSP.

Client-Side Transformations and XML.

The Cross-Browser JavaScript Source File.

The JSP.

The Two XSL Stylesheets.

Summary.

14. Building a Web Service.

Designing a Web Service.

What Is the Goal?

What Are the Requirements?

What Data Does the Service Need?

Building the Web Service.

Building a File Handler.

Building a Search Utility.

Creating an ElementHandler.

Building a Document Object.

Applying a Stylesheet.

Creating a Stylesheet.

Building the Web Service at Last.

Registering the Web Service with Apache SOAP.

Creating a WSDL File.

WSDL Namespaces.

Creating the JSPBuzz WSDL File.

WSDL Implementation File.

WSDL Documentation.

Registering Within UDDI.

Registering a Service.

Using Java to Access a WSDL Document.

Summary.

15. Advanced Application Design.

Dynamic JSP.

When Not to Use Dynamic JSP.

Building a Dynamic JSP Example.

SOAP Server Security Concerns.

Using Tomcat Security Zones.

Servlet Filtering.

Other Apache SOAP-Specific Security Steps.

Quick Takes.

Web Services—SSL and Data Encryption.

Using Cocoon.

Summary.

IV. APPENDIXES.

A. Setting Up.

Installing the JSP Environment.

The Java Software Development Kit (SDK).

The Tomcat Server.

Creating a Web Site for the Book.

NetBeans.

The MySQL Database Server.

Creating a MySQL Database.

Installing a JDBC Driver.

Summary.

B. Introduction to JSP and How Things Work.

JSP Basics.

JSP Banner Example.

Actions.

JSP Actions, Directives, and Implicit Objects.

A More Robust JSP Example.

Additional Information About JSP.

What Is JSP and How Does It Work?

JSP XML Syntax.

JSP Documentation Resources.

Summary.

C. Tag Library.

Tag Library Overview.

What Is a Tag Library?

Advantages.

Disadvantages.

The Six Steps to Building Tag Libraries.

Tag Library Concepts.

Isolating the Business Logic.

The Tag Handler.

The Tag Library Descriptor (TLD).

Creating a Distribution File.

Registering the Tag Library.

Using the Tag Library Declaration on a JSP Page.

Building a Tag Library.

Isolating the Business Logic.

Building a Tag Handler.

The Tag Library Descriptor.

Registering the Tag Library.

Using the Tag Library on a JSP Page.

General Notes.

Body Data.

Design Notes.

Empty Tags.

Threading.

Summary.

D. XSL Reference.

XSLT and XPath.

Context and Current Nodes.

Reference.

XSLT Elements.

XPath Functions.

Index. 0672323540T03282002

Read More Show Less

Preface

The purpose of this book is to teach you how to implement XML and Web services within a JSP Web application or site. The book will start very simply and then work its way up in complexity. This will make the book accessible to a wide range of readers.

The target audience includes new and intermediate JSP programmers. However, this book will be useful for any JSP programmer who wants to expand his or her XML or Web service implementation knowledge. The book is also geared towards helping a JSP programmer think in terms of the combination of JSP, XML, and Web services. The goal is to show how to usefully integrate these technologies into your projects and share the lessons we have learned in building Web applications.

On XML

We are programmers who spend quite a bit of time building Web applications. Over the past few years, we have been implementing XML in our projects. However, implementing XML is easier said than done at times. Even worse, many times XML is implemented in ways that can be harmful to a project. You should never use XML for XML's sake. This book is a reflection of our ordeals in learning the various tools and the methods of incorporating XML in a useful way into a Web site.

The problem for developers hasn't been about finding information on XML, but about using XML successfully within Web applications. While there are plenty of solid XML titles, no title really focuses on how to integrate XML into your JSP project. This book is written with the JSP developer in mind. We want to help teach XML, XSL, XPath, and the entire alphabet soup that goes along with XML. By showing how to use XML within a JSP framework, we intend to help make implementing XML both easy and advantageous for the JSP developer.

On Web Services

Web services are the latest fad. They are so new that many of the accompanying tools are still in beta or are only now being released into the marketplace. It's still very early to learn Web services. Web services are too new for anyone to truly be an expert in the field. This makes learning Web services both an exciting and a strange experience. Our intention is to teach you how to incorporate Web services into JSP. We will remove the confusion that surrounds Web services and give a clear path to learning the basics. This book will show the various elements that constitute a Web service.

On the Structure of the Book

The book is divided into four parts. Part I is designed to introduce you to each of the technologies exemplified throughout this book. Part II drills deeply into the various tools for each of these technologies. Part III shows how to successfully combine all these technologies to make your project easier and faster to implement. Part IV contains appendixes that provide reference material.

Part I: Data, XML, and Web Services Introduction

This part is intended to ground you. We do not assume that you already know a great deal about JSP, XML, or Web services; these three topics are introduced in Chapters 1-3.

Chapter 1: Integrating JSP and Data

This chapter shows how to use JSP and a database together. The chapter serves to ground you in JSP and show you how to perform basic database connectivity.

Chapter 2: Introduction to XML/XSL

This chapter is a whirlwind tour of XML and XSL. It introduces each of the major concepts that are needed for XML and begins teaching XSL and XPath.

Chapter 3: Understanding Web Services

Chapter 3 introduces the concepts of Web services. Web services are a confusing topic, and the chapter focuses on the basic concepts you will need to use them.

Part II: Integrating JSP and XML

Part II is a review of the tools, APIs, and logic required to successfully implement XML and Web services. These chapters introduce the various concepts of Web services and the various parsers for XML. Once you've studied these chapters, you will have enough knowledge to begin using XML and Web services successfully.

Chapter 4: A Quick Start to JSP and XML Together

This chapter gives you a quick start to mixing JSP and XML together. The chapter reviews the basic XML APIs and works through some examples of merging JSP and XML.

Chapter 5: Using DOM

This chapter teaches the important aspects of the DOM API. The DOM is the standard supported by the W3C for working with an XML file programmatically.

Chapter 6: Programming SAX

This chapter teaches you the ins and outs of the SAX API. SAX is probably the most common API used to read in an XML file. Most of the time, SAX is used automatically by other XML APIs. However, this chapter is very important because understanding SAX is critical for handling more complicated XML-based processes.

Chapter 7: Successfully Using JSP and XML in an Application

This chapter introduces the other major Java XML APIs: JDOM and dom4j. This chapter produces an integrated example showing how to work with JSP, XML, and a database. The goal of this chapter is to begin walking you through the integration of XML in a natural way within your JSP application.

Chapter 8: Integrating JSP and Web Services

Chapter 8 examines how to use a Web service within your JSP site. This chapter covers two important Web services topics. The first is using a Web service; the chapter shows the most efficient way to use a Web service within your JSP application. The second topic is building a Web service; the chapter walks through the creation of a Web service that can be used by other applications.

Chapter 9: Advanced JSP and XML Techniques

This chapter explores XML concepts that aren't discussed in other chapters. Topics include accessing a Web service from an HTML page, XML encoding issues, ways of processing large XML documents, and XML tag libraries.

Part III: Building JSP Sites to Use XML

Building a JSP site requires far more than just knowing how to use JSP. It requires the ability to think in terms of building a Web application. Web application design is a fine art that involves integrating many different tools as a seamless unit within a JSP project. To this end, Part III covers the implementation of XML and Web services from an application point of view. The chapters in this part cover many topics, from Web service security to building XML reporting systems. We show many different facets of Web application design, from the server to the often-overlooked browser client.

Chapter 10: Using XSL/JSP in Web Site Design

This chapter examines what is possible by going back to the roots of JSP--or more specifically by using servlets. The goal of the chapter is to examine generic XML handling. This means that the initial processing of an XML document can happen at the application level rather than at the page level. The chapter shows how to capture the processing of an XML page and route it directly to a servlet.

Chapter 11: Using XML in Reporting Systems

No matter what the Web application, it's a safe bet that there will be some reporting involved. This chapter examines how reporting systems can benefit from the appropriate placement and use of XML.

Chapter 12: Advanced XML in Reporting Systems

This chapter builds on the examples in Chapter 11. Additional concepts and topics to enhance an XML-based reporting system are shown in this chapter's examples. Among the examples is one that shows how to create reports that show a one-to-many relationship in the database.

Chapter 13: Browser Considerations with XML

JSP developers often overlook client-side XML processing. This is a serious oversight, as browsers are a growing and improving XML client-side tool. This chapter examines how using the browser can enhance handling of XML data and reduce Web server load.

Chapter 14: Building a Web Service

In this chapter, we build a Web service system for news delivery. The code within this chapter is based on a Web service within a production environment. The goal is to show the design and full integration of a complete Web service.

Chapter 15: Advanced Application Design

This chapter covers two topics. First, we'll show you how to build JSP pages that update themselves. This advanced capability permits JSP sites to be more flexible and to expand what is possible with XML, Web services, and JSP. The second main topic is security; the chapter examines how to secure your Web services.

Appendixes

The appendixes support the material presented in the main part of the book. Their contents are briefly described here.

Appendix A: Setting Up

This appendix covers basic information about setting up the JSP container and introduces NetBeans for the creation of all your JSP pages.

Appendix B: Introduction to JSP and How Things Work

For new JSP users, this appendix offers a crash course on JSP and how it works.

Appendix C: Tag Library

This book uses JSP tag libraries as much as possible. For users who are new to JSP, this appendix quickly covers how to build and use a JSP tag library.

Appendix D: XSL Reference

XSL is used extensively in this book. Appendix D is a reference to the most commonly used XSL tags and XPath functions.

A Word about Source Code

All the source code from the listings and programs included in this book is available via download.

Throughout the book, we create sample class files and JSPs and then build on them later in the same or another chapter. Whenever we do so, we clearly indicate where the original file can be found. Lines of code that should be added or changed are indicated in boldface type.

How to Use the Book

As we mentioned earlier, this book is geared toward new and intermediate JSP programmers. How you use the book, and where you begin reading, will depend on your experience level. Here are a few tips to get you started.

For All Users

If possible, we recommend coding the examples. In programming, the best way to learn is by coding, and the examples have been geared to enable you to do so. If you have any questions about initially setting up the JSP container or NetBeans to create JSPs, refer to Appendix A. Otherwise, the first time a specific component is used, it will be referenced for installation at that time.

In many respects, coding the examples is very important because this book explores many different concepts. If you don't write the code, many of the concepts are likely to slip by or not sink in as deeply as they should. We also encourage you to expand and tweak the examples. Try to break the code and find out why it breaks. As programmers, we learn best by coding and by fixing broken code. Coding is best learned by experience; don't shy away from this reality.

For New JSP Users

We are not going to assume that you already know JSP like the back of your hand. Someone with little or no JSP experience can pick up this book and learn how to use JSP and XML. The code and topics are built in a logical and easy manner to help show what is required in using XML within your JSP projects. Beginning JSP programmers will want to study the chapters in Part I closely. The examples are simple enough that they will be a great learning aid. New JSP readers will also benefit from reading Appendix B.

For Intermediate JSP Users

The best starting place will depend on your skills. For users who are inexperienced in XML or Web services, Part I is still your best bet. Otherwise, we recommend skimming the first section, as there is quite a bit of information within each chapter. These chapters have some information that can benefit more experienced readers. However, if you find that you already know the Part I material, skip ahead to Part II.

Conventions Used in This Book

The following typographic conventions are used in this book:

  • Code lines, commands, statements, variables, and any text you type or see onscreen appears in a mono typeface.
  • Placeholders in syntax descriptions appear in an italic mono typeface. Replace the placeholder with the actual filename, parameter, or whatever element it represents.
  • Italics highlight technical terms when they're being introduced and defined.
  • The book also contains Notes to help you spot important or useful information more quickly.

A Final Note

This book was written as a reference for JSP, XML, and Web services. Learning this material on our own was a long process, and our goal is to help give JSP developers some insights into building JSP Web applications. The fact is, XML and Web services are both fast becoming essential tools to most JSP applications. The problem is trying to learn everything at once. Our goal was to provide integrated examples of practical JSP, XML, and Web service implementations. We hope that you benefit from reading the book as much as we benefited from writing it.

0672323540P03282002

Read More Show Less

Introduction

The purpose of this book is to teach you how to implement XML and Web services within a JSP Web application or site. The book will start very simply and then work its way up in complexity. This will make the book accessible to a wide range of readers.

The target audience includes new and intermediate JSP programmers. However, this book will be useful for any JSP programmer who wants to expand his or her XML or Web service implementation knowledge. The book is also geared towards helping a JSP programmer think in terms of the combination of JSP, XML, and Web services. The goal is to show how to usefully integrate these technologies into your projects and share the lessons we have learned in building Web applications.

On XML

We are programmers who spend quite a bit of time building Web applications. Over the past few years, we have been implementing XML in our projects. However, implementing XML is easier said than done at times. Even worse, many times XML is implemented in ways that can be harmful to a project. You should never use XML for XML's sake. This book is a reflection of our ordeals in learning the various tools and the methods of incorporating XML in a useful way into a Web site.

The problem for developers hasn't been about finding information on XML, but about using XML successfully within Web applications. While there are plenty of solid XML titles, no title really focuses on how to integrate XML into your JSP project. This book is written with the JSP developer in mind. We want to help teach XML, XSL, XPath, and the entire alphabet soup that goes along with XML. By showing how to use XML within a JSP framework, we intend to help makeimplementing XML both easy and advantageous for the JSP developer.

On Web Services

Web services are the latest fad. They are so new that many of the accompanying tools are still in beta or are only now being released into the marketplace. It's still very early to learn Web services. Web services are too new for anyone to truly be an expert in the field. This makes learning Web services both an exciting and a strange experience. Our intention is to teach you how to incorporate Web services into JSP. We will remove the confusion that surrounds Web services and give a clear path to learning the basics. This book will show the various elements that constitute a Web service.

On the Structure of the Book

The book is divided into four parts. Part I is designed to introduce you to each of the technologies exemplified throughout this book. Part II drills deeply into the various tools for each of these technologies. Part III shows how to successfully combine all these technologies to make your project easier and faster to implement. Part IV contains appendixes that provide reference material.

Part I: Data, XML, and Web Services Introduction

This part is intended to ground you. We do not assume that you already know a great deal about JSP, XML, or Web services; these three topics are introduced in Chapters 1-3.

Chapter 1: Integrating JSP and Data

This chapter shows how to use JSP and a database together. The chapter serves to ground you in JSP and show you how to perform basic database connectivity.

Chapter 2: Introduction to XML/XSL

This chapter is a whirlwind tour of XML and XSL. It introduces each of the major concepts that are needed for XML and begins teaching XSL and XPath.

Chapter 3: Understanding Web Services

Chapter 3 introduces the concepts of Web services. Web services are a confusing topic, and the chapter focuses on the basic concepts you will need to use them.

Part II: Integrating JSP and XML

Part II is a review of the tools, APIs, and logic required to successfully implement XML and Web services. These chapters introduce the various concepts of Web services and the various parsers for XML. Once you've studied these chapters, you will have enough knowledge to begin using XML and Web services successfully.

Chapter 4: A Quick Start to JSP and XML Together

This chapter gives you a quick start to mixing JSP and XML together. The chapter reviews the basic XML APIs and works through some examples of merging JSP and XML.

Chapter 5: Using DOM

This chapter teaches the important aspects of the DOM API. The DOM is the standard supported by the W3C for working with an XML file programmatically.

Chapter 6: Programming SAX

This chapter teaches you the ins and outs of the SAX API. SAX is probably the most common API used to read in an XML file. Most of the time, SAX is used automatically by other XML APIs. However, this chapter is very important because understanding SAX is critical for handling more complicated XML-based processes.

Chapter 7: Successfully Using JSP and XML in an Application

This chapter introduces the other major Java XML APIs: JDOM and dom4j. This chapter produces an integrated example showing how to work with JSP, XML, and a database. The goal of this chapter is to begin walking you through the integration of XML in a natural way within your JSP application.

Chapter 8: Integrating JSP and Web Services

Chapter 8 examines how to use a Web service within your JSP site. This chapter covers two important Web services topics. The first is using a Web service; the chapter shows the most efficient way to use a Web service within your JSP application. The second topic is building a Web service; the chapter walks through the creation of a Web service that can be used by other applications.

Chapter 9: Advanced JSP and XML Techniques

This chapter explores XML concepts that aren't discussed in other chapters. Topics include accessing a Web service from an HTML page, XML encoding issues, ways of processing large XML documents, and XML tag libraries.

Part III: Building JSP Sites to Use XML

Building a JSP site requires far more than just knowing how to use JSP. It requires the ability to think in terms of building a Web application. Web application design is a fine art that involves integrating many different tools as a seamless unit within a JSP project. To this end, Part III covers the implementation of XML and Web services from an application point of view. The chapters in this part cover many topics, from Web service security to building XML reporting systems. We show many different facets of Web application design, from the server to the often-overlooked browser client.

Chapter 10: Using XSL/JSP in Web Site Design

This chapter examines what is possible by going back to the roots of JSP—or more specifically by using servlets. The goal of the chapter is to examine generic XML handling. This means that the initial processing of an XML document can happen at the application level rather than at the page level. The chapter shows how to capture the processing of an XML page and route it directly to a servlet.

Chapter 11: Using XML in Reporting Systems

No matter what the Web application, it's a safe bet that there will be some reporting involved. This chapter examines how reporting systems can benefit from the appropriate placement and use of XML.

Chapter 12: Advanced XML in Reporting Systems

This chapter builds on the examples in Chapter 11. Additional concepts and topics to enhance an XML-based reporting system are shown in this chapter's examples. Among the examples is one that shows how to create reports that show a one-to-many relationship in the database.

Chapter 13: Browser Considerations with XML

JSP developers often overlook client-side XML processing. This is a serious oversight, as browsers are a growing and improving XML client-side tool. This chapter examines how using the browser can enhance handling of XML data and reduce Web server load.

Chapter 14: Building a Web Service

In this chapter, we build a Web service system for news delivery. The code within this chapter is based on a Web service within a production environment. The goal is to show the design and full integration of a complete Web service.

Chapter 15: Advanced Application Design

This chapter covers two topics. First, we'll show you how to build JSP pages that update themselves. This advanced capability permits JSP sites to be more flexible and to expand what is possible with XML, Web services, and JSP. The second main topic is security; the chapter examines how to secure your Web services.

Appendixes

The appendixes support the material presented in the main part of the book. Their contents are briefly described here.

Appendix A: Setting Up

This appendix covers basic information about setting up the JSP container and introduces NetBeans for the creation of all your JSP pages.

Appendix B: Introduction to JSP and How Things Work

For new JSP users, this appendix offers a crash course on JSP and how it works.

Appendix C: Tag Library

This book uses JSP tag libraries as much as possible. For users who are new to JSP, this appendix quickly covers how to build and use a JSP tag library.

Appendix D: XSL Reference

XSL is used extensively in this book. Appendix D is a reference to the most commonly used XSL tags and XPath functions.

A Word about Source Code

All the source code from the listings and programs included in this book is available via download.

Throughout the book, we create sample class files and JSPs and then build on them later in the same or another chapter. Whenever we do so, we clearly indicate where the original file can be found. Lines of code that should be added or changed are indicated in boldface type.

How to Use the Book

As we mentioned earlier, this book is geared toward new and intermediate JSP programmers. How you use the book, and where you begin reading, will depend on your experience level. Here are a few tips to get you started.

For All Users

If possible, we recommend coding the examples. In programming, the best way to learn is by coding, and the examples have been geared to enable you to do so. If you have any questions about initially setting up the JSP container or NetBeans to create JSPs, refer to Appendix A. Otherwise, the first time a specific component is used, it will be referenced for installation at that time.

In many respects, coding the examples is very important because this book explores many different concepts. If you don't write the code, many of the concepts are likely to slip by or not sink in as deeply as they should. We also encourage you to expand and tweak the examples. Try to break the code and find out why it breaks. As programmers, we learn best by coding and by fixing broken code. Coding is best learned by experience; don't shy away from this reality.

For New JSP Users

We are not going to assume that you already know JSP like the back of your hand. Someone with little or no JSP experience can pick up this book and learn how to use JSP and XML. The code and topics are built in a logical and easy manner to help show what is required in using XML within your JSP projects. Beginning JSP programmers will want to study the chapters in Part I closely. The examples are simple enough that they will be a great learning aid. New JSP readers will also benefit from reading Appendix B.

For Intermediate JSP Users

The best starting place will depend on your skills. For users who are inexperienced in XML or Web services, Part I is still your best bet. Otherwise, we recommend skimming the first section, as there is quite a bit of information within each chapter. These chapters have some information that can benefit more experienced readers. However, if you find that you already know the Part I material, skip ahead to Part II.

Conventions Used in This Book

The following typographic conventions are used in this book:

  • Code lines, commands, statements, variables, and any text you type or see onscreen appears in a mono typeface.
  • Placeholders in syntax descriptions appear in an italic mono typeface. Replace the placeholder with the actual filename, parameter, or whatever element it represents.
  • Italics highlight technical terms when they're being introduced and defined.
  • The book also contains Notes to help you spot important or useful information more quickly.

A Final Note

This book was written as a reference for JSP, XML, and Web services. Learning this material on our own was a long process, and our goal is to help give JSP developers some insights into building JSP Web applications. The fact is, XML and Web services are both fast becoming essential tools to most JSP applications. The problem is trying to learn everything at once. Our goal was to provide integrated examples of practical JSP, XML, and Web service implementations. We hope that you benefit from reading the book as much as we benefited from writing it.



Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)