Creating JSP in Eclipse IDE with Tomcat Server

Last Updated : 13 May, 2026

JavaServer Pages (JSP) is a technology used to create dynamic web pages using Java and HTML. Eclipse IDE provides an easy environment for developing JSP applications, while Apache Tomcat acts as the web server to run and test them efficiently.

  • Create and configure a Dynamic Web Project in Eclipse
  • Add and configure the Apache Tomcat Server
  • Create, run, and test a JSP page successfully

Steps to Create JSP in Eclipse IDE with Tomcat

The process includes three main steps:

  1. Create a Dynamic Web Project
  2. Create a JSP File
  3. Run the Project on Tomcat Server

Step 1: Create a Dynamic Web Project

  • Go to File -> New -> Dynamic Web Project
  • Enter the Project Name (e.g., HelloWorld)
  • Select the Target Runtime (Apache Tomcat)

click Next -> Finish as pictorially depicted below.

Now you can see your project in the Project Explorer Workspace.

Step 2: Create a JSP File

  • Expand the project in Project Explorer
  • Right-click on the project -> New -> JSP File
  • Enter file name (e.g., index.jsp)

Now, Write File Name, e.g. index. Then Click Next.

Then, click Finish button.

Now, the JSP File is created. Now we can write code here.

Step 3: Run the Project on Tomcat Server

  • Right-click on the project
  • Select Run As ->Run on Server

Choose tomcat server. Then Click Next.

Click Add All -> Finish.

Now, you can see that Java Server Pages (JSP) is running successfully as shown below. Hence we are able to achieve our goal in creating JSP in Eclipse IDE with Tomcat server.

The application runs at:

http://localhost:8080/HelloWorld/index.jsp

Comment