Sun Java System Web Server 6.1 SP7 Programmer's Guide to Web Applications

ProcedureTo create a web application

  1. Create a directory for all of the web application's files. This is the web application's document root.

  2. Create any needed HTML files, image files, and other static content. Place these files in the document root directory or a subdirectory where they can be accessed by other parts of the application.

  3. Create any needed JSP files. For more information, see Chapter 4, Using JavaServer Pages

  4. Create any needed servlets. For more information, see Chapter 3, Using Servlets

  5. Compile the servlets. For details about precompiling JSPs, see Compiling JSPs: The Command-Line Compiler

  6. Organize the web application as described in Web Application Structure

  7. Create the deployment descriptor files. For more information, see Creating Web Deployment Descriptors

  8. Package the web application in a .war file . This is optional. For example:

    jar -cvf module_name.war *

  9. Deploy the web application. For more information, see Deploying Web Applications

    You can create a web application manually, or you can use Sun™ Java System Studio.