Cheap VPS & Xen Server


Residential Proxy Network - Hourly & Monthly Packages

JSP in Eclipse


  • Create a Dynamic web project
  • create a jsp
  • start tomcat server and deploy the project

1) Create the dynamic web project

For creating a dynamic web project click on File Menu -> New -> dynamic web project -> write your project name e.g. first -> Finish.

creatingservletineclipse1

creatingservletineclipse2

creatingservletineclipse3

creatingservletineclipse4

creatingservletineclipse5

creatingservletineclipse6

2) Create the JSP file in eclipse IDE

For creating a jsp file explore the project by clicking the + icon -> right click on WebContent -> New -> jsp -> write your jsp file name e.g. index -> next -> Finish.

creatingservletineclipse7

creatingjspineclipse

creatingjspineclipse2

creatingjspineclipse3

creatingjspineclipse4

creatingjspineclipse5

Now JSP file is created, let’s write some code.

creatingjspineclipse6

3) Start the server and deploy the project:

For starting the server and deploying the project in one step Right click on your project -> Run As -> Run on Server -> choose tomcat server -> next -> addAll -> finish.


If you are using Eclipse IDE first time, 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 project

For starting the server and deploying the project in one step Right click on your project -> Run As -> Run on Server -> choose tomcat server -> next -> addAll -> finish.

creatingjspineclipse6

creatingjspineclipse7

creatingjspineclipse9

Yes, Let’s see JSP is successfully running now.

creatingjspineclipse10

 

Comments

comments