Assemble Web apps
Assemble a Web module to contain servlets, JSPs and related code artifacts.
Group enterprise beans, client code, and resource adapter code in separate modules.
After assembling a Web module, we can install it as a standalone application or combine it with other modules into an enterprise application.
This page assumes that we have created and unit tested Servlets and JSPs and other Web components to assemble in an enterprise application and deploy onto an appserver.
Use an 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 we can input various properties for Web archives, available properties are specific to the Servlet, JSP, and Java EE spec level.
- Start an assembly tool.
- If we have not done so already, configure the assembly tool for work on Java EE modules.
Ensure that J2EE and Web capabilities are enabled.
- Migrate WAR files created with the Assembly Toolkit, Application Assembly Tool (AAT) or a different tool to an assembly tool.
To migrate files, import the WAR files to the assembly tool.
- Create a new Web module.
- Copy code artifacts (such as servlets) from one Web module into a new Web module.
Results
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 the Web project to an appserver.
Web component security
Secure Web apps using an assembly tool
Security constraints in Web apps
Security settings
File serving 
Related concepts
Web modules
Web apps
JSPs
Page lists
Application life cycle listeners and events
Servlet filtering
Servlets
Client type detection support
Global tag libraries (deprecated)
Related tasks
Install enterprise application files
Assembling applications
Related
Web apps: Links 
Related information
Importing WAR files
Create a dynamic Web project