Before You Begin |
Building Web Components provides essential information for anyone involved in the creation of web applications with Java 2 Platform, Enterprise Edition (J2EE) web components. It is part of the Forte for Java 4 programming series. This book focuses on web application development in the context of the J2EE and its supporting technologies. These technologies include Java servlets and JavaServer Pages (JSP).
This book introduces web applications and provides suggestions for their structure. It describes the work flow of developing a web application. The book proposes design practices and provides pointers to suggested structures and frameworks for scalable, maintainable web applications. It places these concepts within the context of the Forte for Java 4 IDE with discussions of the creation of JSP pages and servlets, coding, testing, debugging, and deployment. The book discusses new features such as the HTTP monitor tool and filter technology.
In particular, this book describes how web applications typically use JSP pages, Java servlets, JSP tag libraries, and supporting classes and files. Web applications might use persistent data, for example, a database. They could be independent applications with features managed by a web container. Or, they might provide a user interface while depending on components in a J2EE Enterprise JavaBeans (EJB) container for other services. Such services might include execution of business logic and access to persistent data.
You can create the examples in this book in the environments listed in the release notes on the following web site:
http://forte.sun.com/ffj/documentation/index.html
Screen shots vary slightly from one platform to another. You should have no trouble translating the slight differences to your platform. Although almost all procedures use the Forte for Java 4 user interface, occasionally you might be instructed to enter a command at the command line. Here too, there are slight differences from one platform to another. For example, a Microsoft Windows command might look like this:
c:\>cd MyWorkDir\MyPackage |
To translate for UNIX® or Linux environments, simply change the prompt and use forward slashes:
% cd MyWorkDir/MyPackage |
The book assumes you are a web application developer or a web application designer. A web application developer writes the application code. A web application designer specifies how users interact with an application, chooses interface components, and arranges them in a set of views. Unless otherwise stated, this book uses the term web application to refer to a J2EE web application. The web application developer might or might not be the same person as the web application designer. In either case, it is assumed you have a general knowledge of Java programming, JSP page programming, and HTML coding. Information in this book might also prove useful for any professionals who participate in the creation of applications based on web components. Such professionals might include technical writers, graphic artists, production and marketing specialists, and testers. This book presents the ways in which web application development work flow is facilitated by the use of the IDE. It provides a context in which to use this productivity tool.
The development of web applications differs markedly from that of traditional Java applications. It requires an understanding of several different technologies, including:
This book enables you to use your current skills. It also provides you with references to help you become productive in the building of web applications with the IDE.
This book also requires a knowledge of J2EE concepts, as described in the following resources:
The Forte for Java 4, Community Edition Tutorial can be downloaded from the Developer Resources web site. To gain access to the tutorial, choose Help, then Learning, then Examples, then Tutorials from the IDE's main menu.
The J2EE Tutorial describes the process of developing web applications. Visit the web site at:
http://java.sun.com/j2ee/tutorial/
The Web Apps tutorial from the Web Services Developer pack provides helpful background. It could prove useful as a reference while reading this book. Visit this web site to download the tutorial:
http://java.sun.com/webservices/docs/ea2/tutorial/index.html
Building Web Components contains the following information:
Chapter 1 provides an introduction to web applications and the challenges they present to developers. It describes the ways that the IDE helps the developer face those challenges.
Chapter 2 discusses the structure of web applications. It includes an overview of the core J2EE technologies used in building the components of web applications.
Chapter 3 gives an overview of useful design patterns and frameworks for web applications.
Chapter 4 describes the process of developing your own web application using the IDE.
Chapter 5 provides details on the process of executing, debugging, and deploying your web application using the IDE.
The Glossary defines important words and phrases found in the book. Glossary terms appear in italics throughout the book.
This book is intended to provide sufficient information to get you started using the IDE as a productivity tool. However, it is not designed as a tutorial. The book is neither a comprehensive reference, nor does it supply all possible designs for a web application. It is not a visual design guide. Nor is the focus on developing the J2EE web tier. The book does not delve into how to develop EJB components. See Useful References for suggested readings. See Before You Read This Book for references to tutorials regarding the development of web applications.
This section provides the names of references you might find helpful when reading this book.
This volume covers topics related to web application design and implementation:
Here is a selection of websites dealing with web application technologies:
The names of commands, files, and directories; on-screen computer output |
||
What you type, when contrasted with on-screen computer output |
||
Read Chapter 6 in the User's Guide. |
||
Forte for Java 4 documentation includes books delivered in Acrobat Reader (PDF) format, online help, readme files of example applications, and Javadoc documentation.
The documents in this section are available from the Forte for Java 4 portal and the docs.sun.comSM web site.
The documentation link of the Forte for Java Developer Resources portal is at http://forte.sun.com/ffj/documentation/. The docs.sun.com web site is at http://docs.sun.com.
The docs.sun.com web site (http://docs.sun.com) enables you to read, print, and buy Sun Microsystems manuals through the Internet. If you cannot find a manual, see the documentation index installed with the product on your local system or network.
Online help is available inside the Forte for Java 4 development environment. You can access help by pressing the help key (Help in a Solaris environment, F1 on Microsoft Windows and Linux), or by choosing Help Contents. Either action displays a list of help topics and a search facility.
You can download several examples that illustrate a particular Forte for Java 4 feature, as well as the source files for the tutorial applications from the Developer Resources portal, at:
http://forte.sun.com/ffj/documentation/tutorialsandexamples.html
Javadoc documentation is available within the IDE for many Forte for Java 4 modules. Refer to the release notes for instructions on installing this documentation. When you start the IDE, you can access this Javadoc documentation within the Javadoc pane of the Explorer.
Sun is interested in improving its documentation and welcomes your comments and suggestions. Email your comments to Sun at this address:
Please include the part number (816-4337) of your document in the subject line of your email.
Copyright © 2002, Sun Microsystems, Inc. All rights reserved.