...
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:
- Click File, New, Project to launch the New Project dialog.
- Select Dynamic Web Project and click Next.
- 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.
- In the Project Explorer view, Right click on mywebapp and select New, JSP.
- Enter index.jsp for File name and click Finish.
- Change the content of index.jsp to the following:
Code Block html html borderStyle solid title index.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>
- Right-click on mywebapp and select Run As, Run on Server.
- 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
...