Starting a Web application on the local machine

If you are working with an EGL-based Web application that accesses a JNDI data source, you cannot follow the instructions in the current topic unless you previously configured a Web application server. For background information that is specific to WebSphere®, see WebSphere Application Server and EGL.

To start a Web application, follow these steps:
  1. Generate Java™ source code from your EGL source code; for details see Generating in the workbench.
  2. In the Project Explorer, expand the WebContent and WEB-INF folders. Right-click the JSP you want to run, then select Run > Run on Server. The Server Selection dialog is displayed.
  3. If you have already configured a server for this Web project, select Choose an existing server, then select a server from the list. Click Finish to start the server, to deploy the application to the server, and to start the application.
  4. If you have not configured a server for this Web project, you can proceed as follows, but only if your application does not access a JNDI data source--
    1. Select Manually define a server.
    2. Specify the host name, which (for the local machine) is localhost.
    3. Select a server type that is similar to the Web application server on which you intend to deploy your application at run time. Choices include WebSphere v5.1 Test Environment and WebSphere v6.0 Server.
    4. If you do not intend to change your choices as you work on the current project, select the check box for Set server as project default.
    5. In most cases, you can avoid this step; but if you wish to specify settings that are different from the defaults, click Next and make your selections.
    6. Click Finish to start the server, to deploy the application to the server, and to start the application.

Related concepts
Generation in the workbench
WebSphere Application Server and EGL
Web support

Related tasks
Generating in the workbench

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.