Creating an EGL web project

This topic covers how to create an EGL web project.
The steps for creating an EGL web project are similar to those for creating an EGL project, but include additional steps for the target runtime, or the server that the project will be deployed to. To set up a new EGL web project:
  1. From the menu bar, click File > New > Project The New Project window opens.
  2. In the New Project window, expand EGL and click EGL Project Wizard. If you do not seeEGL Project Wizard, select the Show All Wizards check box.
  3. Click Next.
  4. Type a name for the project in the Project name field.
  5. Under EGL Project Types, select Web project.
  6. Click Next.
  7. Choose a target runtime for the project in the Target Runtime list.

    You are not required to choose a runtime right now, but you will need to choose a runtime before you can run the project on a server or deploy the project. It is best to choose a runtime now; you can change the target runtime later.

  8. Under Build Descriptor Options, choose where the default build descriptor for the project will be located or created:
    • Create a new build descriptor means that EGL provides a new build descriptor and writes it to a new build file (extension .eglbld) that has the same name as the project.

      To specify a default database connection in that build descriptor, click Options. To change those values later, change the build file that is created for you.

    • Use the build descriptor specified in the EGL preferences means that EGL points to a build descriptor that you created and identified as an EGL preference.
    • Select an existing build descriptor enables you to specify a build descriptor from those that are available in your workspace.
  9. If you want to configure other options for the project, such as adding it to an EAR application or adding additional facets, select Show Advanced Settings and then click Next. Otherwise, click Finish.
  10. Under Project location, you can choose to place the project in your workspace, as is the default, or you can choose a different location.
  11. Under EAR Membership, specify whether to include the project as a module within an Enterprise Application Resource (EAR) project in the workspace:
    • If you clear the Add project to an EAR check box, the project is not added to an EAR project. You can add the new project to an EAR project later.
    • If you select the Add project to an EAR check box and choose an existing EAR project in the EAR Project Name list, the new project will be added to that EAR project. The new project will use the EAR project's target runtime, regardless of your choice of runtime on the previous page.
    • If you select the Add project to an EAR check box and type a name for a new EAR project in the EAR Project Name list, the new EAR and EGL web projects will both use the runtime selected in the Target Runtime list on the previous page. By default, the name of the new EAR project is the name of the EGL web project with the suffix EAR.
    • If you selected a target runtime that does not support EAR projects on the previous page, the EAR Project Name field is disabled.
  12. Under EGL Project Features Choices, select the check boxes for the additional features to include in the project, if any. For more information on features and facets, see Features and facets of EGL projects.
  13. If you want an EGL deployment descriptor in the project, select Create an EGL deployment descriptor. You must still set the deploymentDescriptor build descriptor option to the name of the deployment descriptor before the project will use the new deployment descriptor.
  14. After you have filled out the information on the first page, you can click Finish to complete the process and create the project with the default options, or click Next to continue setting the remainder of the options. These instructions continue with the remainder of the options.
  15. On the Project Facets page, select any facets that you may want to add to your project or select a preset facet configuration. See Features and facets of EGL projects.
  16. Click Next.
  17. In the Context Root field, type a name for the root folder of the project when the project is deployed to a web server or accept the default, which the same as the project name.
  18. In the Content Directory field, type the name for the web content folder. The default name is WebContent.
  19. In the Java Source Directory field, type the name for the generated code folder. The default name is src.
  20. Click Finish.

Feedback