logo

JSP In Eclipse


Show

Creating JSP in Eclipse IDE with Tomcat Server

  • Make a Dynamic web project
  • Make a JSP
  • start tomcat server and deploy the project

1. Created the dynamic web project

Follow these steps to create a dynamic web project click on File Menu -> New -> dynamic web project -> write your project name e.g. first -> Finish.

2. Make the Jsp file in Eclipse IDE

Follow these steps to create a file and explore the project by clicking the + icon -> right click on WebContent -> New -> jsp -> write your jsp file name e.g. index -> next -> Finish.

Jsp file is created come let's read some codes

3. Start the server and deploy the project

Follow these steps for starting the server and deploying the project only in a single step Right-click on your project -> Run As -> Run on Server -> choose tomcat server -> next -> addAll -> finish.

The person who uses eclipse IDE for the first time then you need to configure the tomcat server first Click for How to configure tomcat server in eclipse IDE

Now start the tomcat server and deploy the project

Follow these steps for starting the server and deploying the project only in a single step Right-click on your project -> Run As -> Run on Server -> choose tomcat server -> next -> addAll -> finish.

Yes, now you can see that JSP is running successfully