A Simple JSP application in eclipse
To develop and execute a simple JSP application with Tomcat Server, we follow the following steps:
- Create a Dynamic web project.
- Create a jsp.
- Start tomcat server .
Create a Dynamic web project
For creating a dynamic web project click on File Menu -> New -> dynamic web project -> write your project name e.g. jspdemo ->next->next-> Finish.
Create the JSP file
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-> Finish.
After creting index.jsp file we will write the code, like:
Then start the server and run the project (right click on project-> Run as-> Run on Server):
Now we will get the following:
Java Training | Python Training | Machine Learning with Python Training | Deep Learning with Python Training | Data Science with Python Training | Projects
SILAN Technology, BBSR Call to: 0674-2361252