Generating an Implementation

You generate an implementation by generating the servlet and then using the Code Generation Details dialog.

Procedure

  1. Select Properties General > Validation Report, and click the fix... link.
  2. Click Generate Servlet Implementation.
  3. Using the Canvas control, right-click the component and select Quick Fixes > Generate Servlet Implementation.
  4. Right-click the component and select Generate Servlet Implementation.
  5. In the Problems view, right-click an error of the form "Component <ComponentName> is not configured" and select Quick Fix.
  6. In the Quick Fix dialog, click Generate Servlet Implementation.
  7. Click Finish.
    The Code generation details dialog displays.
  8. Complete the process described in Generate WebApp Component Implementation.
  9. Click Finish.
    A WTP implementation is generated.
    The WebContent folder contains items to be published to the server. By default, this folder will be named WebContent for newly created static and dynamic Web projects.
    • META-INF — This directory contains the MANIFEST.MF file, which is used to map class paths for dependent JAR files that exist in other projects in the same Enterprise Application project. An entry in this file will update the run-time project class path and Java build settings to include the referenced JAR files.
    • WEB-INF — The directory where supporting Web resources for a Web application are kept (for example: .xmi files, .xml files, and web.xml.)