Sun Java System Web Server 7.0 Update 4 Developer's Guide to Java Web Applications

Creating Web Applications

This section lists the general actions to create a web application, and provides pointers to more information.

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

  2. Create any needed HTML files, image files, and other static content.

  3. Place these files in the document root directory or a subdirectory where they can be accessed by other parts of the application.

  4. Create any needed JSP files.

    For more information, see Chapter 5, Developing JavaServer Pages

  5. Create any needed servlets.

    For more information, see Chapter 4, Developing Servlets.

  6. Compile the servlets.

    For details about precompiling JSPs, see Compiling JSPs Using the Command-Line Compiler.

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

  8. Create the deployment descriptor files.

    For more information, see Creating Web Deployment Descriptors.

  9. (Optional) Package the web application in a .war file. For example:

    jar -cvf module_name.war *.

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

    You can create a web application manually or you can use Java System Enterprise Studio. For more information about developing web applications in Sun Java Enterprise Studio, see