Working With Web Projects - Quickstart
Last Revision:
Outline
1. Preface
2. Introduction
3. Web project concepts and terminology
4. Creating a web project
5. Overview of web development productivity tools
6. Creating a JSP document
1. Creating a JSP/a>
2. Editing JSP
3. Using code completion
4. Validating JSP
7. Deploy, test, and debug web project
1. Deploy web project
2. Test application
3. JSP debugging
8. Working with an existing web project
9. Customizing web project preferences
10.Advanced Features
1. Dependent Java project setup and deployment
2. Library deployment policy configuration
3. Adding Advanced Capabilities... to your Web Project
11.Summary
12.User Feedback
1. Preface
This document was written using Sun JDK 1.4.2, Eclipse 3.1 and MyEclipse 4.0. All screenshots were taken using the default settings for Eclipse, MyEclipse, and Windows XP. If you
experience difficulty with the instruction of this document, please see the User Feedback section for how to provide feedback to the MyEclipse documentation team.
Back to Top
2. Introduction
This Quick-Start presents the basic and advanced features, concepts, and techniques for rapidly getting started in the development of J2EE web applications using MyEclipse Web Tools.
Specifically, this document presents how to:
• Create a MyEclipse Web Project
• Create a JSP using the JSP Wizard
• Editing a JSP using the JSP Editor
• Deploy, test and debug a Web Project as a web application
• Add web project capabilities to an existing Java project
• Create dependent Java projects and configure their deployment policy
• Add an external library to a Web Project and configure its deployment policy
• Customize Web Project preferences
Back to Top
3. Web Project Concepts and Terminology
This section introduces the key Web Project concepts and terminology used throughout the MyEclipse product. Having a basic understanding of these concepts will enable you to work with
MyEclipse Web Projects and productivity tools proficiently and intuitively.
In simplest terms:
A MyEclipse Web Project is an Eclipse Java Project that includes metadata that defines the project's web nature and a directory structure patterned after the J2EE web archive
(WAR) structure .
Figure 1 presents an annotated view of the structure of an example HelloWorld web project. Note that MyEclipse web projects are decorated with a small globe icon in the top-right corner of
a project folder, . Within this example project, two special subfolders are shown: "src" and "WebRoot" The "src " folder contains Java source code such as Java packages and their
classes and interfaces. The " WebRoot " folder is the root or base folder of a directory structure patterned after the J2EE web archive (WAR) structure . The root directory is formally known
as the web-root and it contains 3 subdirectories. Web content and resources such as JSP and HTML files, tag libraries, and JAR files are located under the web-root directory and its
subdirectories. Table-1 defines the role of the web-root subdirectories and resources.