Executing the JSP

Java Web development tutorial Eclipse

This application is a simple Hello World application which will output Hello World!! on the browser. It needs a dynamic Web project and a JSP associated with it.

To run this tutorial, as a minimum you will be required to have installed the following prerequisite software:

  1. Sun JDK 6.0+ (J2SE 1.6)
  2. Eclipse IDE for Java EE Developers, which is platform specific
  3. Apache Geronimo Eclipse Plugin 2.1.x
  4. Apache Geronimo Server 2.1.x

Geronimo version 2.1.x, Java 1.5 runtime, and Eclipse Ganymede are used is used in this tutorial but other versions can be used instead (e.g., Geronimo version 2.2, Java 1.6, Eclipse Europa)

Creating a dynamic Web project using Eclipse

  1. Launch Eclipse and Switch to Java EE perspective.
  2. Right click under the project explorer and select Dynamic Web Project as shown in the figure
  3. Name the project as HelloWorld.
  4. Keep default values for all the fields and select Finish.

Adding a JSP to the project

  1. Right-click on the project HelloWorld and create a new JSP as shown in the figure.
  2. Give the name as hello.jsp and select Next. Select Finish on the next screen
  3. Modify the code of hello.jsp as follows:

Making hellp.jsp the welcome file

  1. Click WebContent -> WEB-INF and open web.xml.
  2. Add hello.jsp as a welcome file under the tag:
Source: geronimo.apache.org
Eclipse Tutorial (For Java Developers) - Installation
Eclipse Tutorial (For Java Developers) - Installation ...
Java development tutorial 2 - Eclipse
Java development tutorial 2 - Eclipse
[German][Eclipse] Java Tutorial
[German][Eclipse] Java Tutorial
Share this Post

Related posts

Choosing BI Solution: Tibco Spotfire or Tableau?

Choosing BI Solution: Tibco Spotfire or Tableau?

APRIL 23, 2018

Recently Business Intelligence (BI) is gaining increasing importance among successful companies. Business Intelligence allows…

Read More
Front-end Web development tutorials

Front-end Web development tutorials

APRIL 23, 2018

The data is stored with the browser s buil-in localStorage mechanism, which is exposed as a JavaScript API, as explained…

Read More