Create a directory for all of the web application's files. This is the web application's document root.
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.
Create any needed JSP files. For more information, see Chapter 4, Using JavaServer Pages
Create any needed servlets. For more information, see Chapter 3, Using Servlets
Compile the servlets. For details about precompiling JSPs, see Compiling JSPs: The Command-Line Compiler
Organize the web application as described in Web Application Structure
Create the deployment descriptor files. For more information, see Creating Web Deployment Descriptors
jar -cvf module_name.war *
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.