Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The newly added server runtime can be selected from Server runtime drop-down in Define a New Server dialog while defining a new server.

Creating a new project

To create a new Web project, follow the steps below:

  1. Click File, New, Project to launch the New Project dialog.
  2. Select Dynamic Web Project and click Next.
    Image Added
  3. Enter mywebapp for project name, select Apache Geronimo v2.1 Runtime for Target Runtime, select Default Configuration for Apache Geronimo v2.1 Runtime and click Finish.
    Image Added
  4. In the Project Explorer view, Right click on mywebapp and select New, JSP.
  5. Enter index.jsp for File name and click Finish.
  6. Change the content of index.jsp to the following:
    Code Block
    html
    html
    borderStylesolid
    titleindex.jsp
    
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>My WebApp</title>
    </head>
    <body>
    <h1>Welcome to My WebApp</h1>
    </body>
    </html>
    
  7. Right-click on mywebapp and select Run As, Run on Server.
  8. Click Choose and existing server, select Apache Geronimo v2.1 Server at localhost and click Finish.

The application will be run on the selected server and the welcome page will display in a web browser window inside eclipse.

Configuring your development environment

...