Assembling Web applications

Assemble a Web module to contain servlets, JavaServer page (JSP) files, and related code artifacts. (Group enterprise beans, client code, and resource adapter code in separate modules). After assembling a Web module, install it as a standalone application or combine it with other modules into an enterprise application.

 

Before you begin

This article assumes that you have created and unit tested Servlets, JavaServer Pages (JSP) files and other Web components that you want to assemble in an enterprise application and deploy onto an application server.

 

Overview

Use the Application Server Toolkit (AST) or Rational Web Developer assembly tool to assemble a Web module in any of the following ways:

  • Import an existing Web module (WAR file).

  • Create a new Web module.

  • Copy code artifacts (such as servlets) from one Web module into a new Web module.

Although one can input various properties for Web archives, available properties are specific to the Servlet, JSP, and J2EE specification level.

 

Procedure

  1. Start an assembly tool.

  2. If you have not done so already, configure the assembly tool for work on J2EE modules. Ensure that J2EE and Web capabilities are enabled.

  3. Migrate WAR files created with the Assembly Toolkit, Application Assembly Tool (AAT) or a different tool to an AST or Rational Web Developer assembly tool. To migrate files, import your WAR files to the assembly tool.

  4. Create a new Web module.

  5. Copy code artifacts (such as servlets) from one Web module into a new Web module.

 

Result

A Web project is migrated or created. Files for the Web project are shown in the Project Explorer view under Enterprise Applications and Web Projects.

 

What to do next

We can now deploy your Web project to an application server.

 

See also


Context parameters
Security constraints
Servlet mappings
Serving of servlets by name or class name
File serving
Initialization parameters
Servlet caching
Web components
Web property extensions
Web resource collections
Welcome files

 

See Also


Web modules
Web applications
JavaServer Pages
Page lists
Application life cycle listeners and events
Servlet filtering
Servlets
Client type detection support
Global tag libraries

 

Related Tasks


Assembling applications

 

See Also


Web applications: Resources for learning

 



 

 

Rational is a trademark of the IBM Corporation in the United States, other countries, or both.