Before You Begin

The Sun Javatrademark Studio's Web Application Framework Tutorial introduces developers to the mechanics and techniques used to build Web applications using the Sun Java Studio's Web Application Framework (formerly Suntrademark ONE Application Framework and JATO) tools.

It is intended for developers who are at least somewhat familiar with building web applications using existing Java 2 Platform, Enterprise Edition (J2EEtrademark platform) web technologies, but new to building web applications with the Web Application Framework.


Before You Read This Book

This tutorial helps the developer become more familiar with using the Web Application Framework tool within the Sun Java Studio Enterprise 6 developer environment (hereafter referred to as the IDE).

Before starting, you should be familiar with concepts used in building web applications using existing J2EE web technologies, such as servlets and JavaServlet Pagestrademark (JSPtrademark pages).

The following resources can provide additional information :



Note - Sun is not responsible for the availability of third-party web sites mentioned in this document and does not endorse and is not responsible or liable for any content, advertising, products, or other materials on or available from such sites or resources. Sun will not be responsible or liable for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods, or services available on or through any such sites or resources.




How This Book Is Organized

In the following chapter, you will see an overview of the primary features of the Web Application Framework and toolset (IDE) for developing an enterprise web application.

In the following chapter, you see an outline of the mechanics of using the Web Application Framework tools to build a J2EE web application.

In the following chapters, you create the application infrastructure needed for all subsequent chapters, and add your first Web Application Framework page.

In the following chapters, you expand the existing application by adding a SQL-based model, and a page to display that model's data. You then link the two application pages together so they show coordinated data.

In the following chapters, you create a Command component that can be reused by many buttons and HREFs within the same application. This is the alternative technique to implementing request handling code in the button or HREF's handle request event inside its parent container view class.

In the following chapters, you expand the existing application by adding a Web service-based model and a page to display that model's data. You need to register for and download the Google developer's SDK to build a model for a Web service.


Typographic Conventions

Typeface

Meaning

Examples

AaBbCc123

The names of commands, files, and directories; on-screen computer output

Edit your .cvspass file.

Use DIR to list all files.

Search is complete.

AaBbCc123

What you type, when contrasted with on-screen computer output

> login

Password:

AaBbCc123

Book titles, new words or terms, words to be emphasized

Read Chapter 6 in the User's Guide.

These are called class options.

You must save your changes.

AaBbCc123

Command-line variable; replace with a real name or value

To delete a file, type DEL filename.



Related Documentation

Java Studio Enterprise documentation includes books delivered in Acrobat Reader (PDF) format, release notes, online help, and readme files for example applications.

Documentation Available Online

The documents described in this section are available from the docs.sun.comSM web site and from the documentation page of the Sun Developer Resources portal at http://developers.sun.com/prodtech/javatools/jsenterprise/reference/docs/index.html.

The docs.sun.com web site (http://docs.sun.com) enables you to read, print, and buy Sun Microsystems manuals through the Internet.

Describes last-minute release changes and technical notes.

Describes how to install the Sun Java Studio Enterprise 6 integrated development environment (IDE) on each supported platform and includes other pertinent information, such as system requirements, upgrade instructions, server information, command-line switches, installed subdirectories, database integration, and information on how to use the Update Center.

Describes the available code examples for Sun Java Studio Enterprise 6 software.

This series provides in-depth information on how to use various Sun Java Studio Enterprise 6 features to develop well-formed J2EE applications.

Describes how to build a web application as a J2EE web module using JSP pages, servlets, tag libraries, and supporting classes and files.

Describes how to assemble EJB modules and web modules into a J2EE application and how to deploy and run a J2EE application.

Describes how to build EJB components (session beans, message-driven beans, and entity beans with container-managed persistence or bean-managed persistence) using the Sun Java Studio Enterprise 6 EJB Builder wizard and other components of the IDE.

Describes how to use the Sun Java Studio Enterprise 6 IDE to build web services, to make web services available to others through a UDDI registry, and to generate web service clients from a local web service or a UDDI registry.

Describes how to use the JDBC productivity enhancement tools of the Sun Java Studio Enterprise 6 IDE, including how to use them to create a JDBC application.

Describes the various parts of the Sun Java Studio Enterprise 6 IDE and emphasizes the use of the visual tools for developing a Web Application Framework application.

Provides the steps to create and use application components that can be assembled to develop an application using the Web Application Framework and explains how to deploy the application in most J2EE containers.

Introduces the Web Application Framework and what it is, how it works, and what sets it apart from other application frameworks.

Gives a brief introduction to the Web Application Framework tag library, as well as a comprehensive reference to the tags available within the library.

Describes the Web Application Framework component architecture and the process to design, create, and distribute new components.

Describes the components available in the Web Application Framework Library.

Tutorials, Mini-Tutorials, and Examples

Sun Java Studio Enterprise 6 tutorials, mini-tutorials, and examples help you understand the features of the IDE. Each example or tutorial provides code samples that you can use or modify in developing more substantial applications. All examples and tutorials illustrate deployment with Sun Java System Application Server.

Completed examples are available in the AboutExamples directory under your Java Studio Enterprise user directory.

Mini-tutorials are available from the Tutorials and Code Camps page of the Sun Java Studio Enterprise 6 developers portal, at http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.html.

Provides step-by-step instructions for building a simple J2EE web application.

Provides step-by-step instructions for building an application using EJB components and Web Services technology.

These documents are available from docs.sun.com. The documents, as well as zip files of the completed applications, are also available from the Tutorials and Code Camps page of the Sun Java Studio Enterprise 6 developers portal, at http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.html.

Online Help

Online help is available in the Sun Java Studio Enterprise 6 IDE. You can open help by pressing the help key (F1 in Microsoft Windows environments, Help key in the Solaris environment), or by choosing Help right arrow Contents. Either action displays a list of help topics and a search facility.

Documentation in Accessible Formats

The documentation is provided in accessible formats that are readable by assistive technologies for users with disabilities. You can find accessible versions of documentation as described in the following table.

Type of Documentation

Format and Location of Accessible Version

Books and tutorials

HTML at http://docs.sun.com

Mini-tutorials

HTML at http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.html

Integrated example readmes

HTML in the example subdirectories of java-studio-install-dir/examples

Release notes

HTML at http://docs.sun.com



Sun Welcomes Your Comments

Sun is interested in improving its documentation and welcomes your comments and suggestions. Email your comments to Sun at this address:

docfeedback@sun.com

Please include the book's title (Sun Java Studio's Web Application Framework Tutorial) and its part number (817-5401-10) in the subject line of your email.