0% found this document useful (0 votes)
28 views32 pages

Steps To Create Servlet in Eclipse and Deploy in Tomcat

The document outlines 31 steps to create a servlet in Eclipse and deploy it on Tomcat. It involves creating a dynamic web project in Eclipse, generating a web.xml file, adding a servlet class with a doGet method, configuring the servlet in web.xml, running the project on a Tomcat server, and accessing the servlet.

Uploaded by

upendra bathula
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views32 pages

Steps To Create Servlet in Eclipse and Deploy in Tomcat

The document outlines 31 steps to create a servlet in Eclipse and deploy it on Tomcat. It involves creating a dynamic web project in Eclipse, generating a web.xml file, adding a servlet class with a doGet method, configuring the servlet in web.xml, running the project on a Tomcat server, and accessing the servlet.

Uploaded by

upendra bathula
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

Steps to create Servlet in Eclipse and Deploy in Tomcat

Step 1: (15-09-2020 01:41:31) User left click on "eclipse – 1 running window (button)"
Step 2: (15-09-2020 01:41:35) User left click on "File (menu item)" in "eclipse"
Step 3: (15-09-2020 01:41:36) User left click on "New Alt+Shift+N (menu item)"
Step 4: (15-09-2020 01:41:39) User left click on "Dynamic Web Project (menu item)"
Step 5: (15-09-2020 01:41:42) User left click on "Project name: (edit)" in "New Dynamic Web Project"
Step 6: (15-09-2020 01:41:50) User left click on "Project name: (edit)" in "New"
Step 7: (15-09-2020 01:41:55) User left click on "Finish (button)" in "New"
Step 8: (15-09-2020 01:42:05) User left click in "Structure of project"
Step 9: (15-09-2020 01:42:11) User left click in "Check web.xml in WEB-INF"
Step 10: (15-09-2020 01:42:14) User right click in "Deployment Description to create web.xml"
Step 11: (15-09-2020 01:42:19) User left click on "Generate Deployment Descriptor Stub (menu item)"
Step 12: (15-09-2020 01:42:28) User left click in "web.xml"
Step 13: (15-09-2020 01:42:29) User right click in "Project created"
Step 14: (15-09-2020 01:42:34) User left click on "New (menu item)"
Step 15: (15-09-2020 01:42:38) User left click on "Servlet (menu item)"
Step 16: (15-09-2020 01:42:52) User left click on "Java package: (edit)" in "Create Servlet"
Step 17: (15-09-2020 01:43:15) User left click on "Class name: (edit)" in " Create Servlet "
Step 18: (15-09-2020 01:43:18) User left click on "Finish (button)" in " Create Servlet "
Step 19: (15-09-2020 01:44:26) Write the servlet code in doGet()
Step 20: (15-09-2020 01:45:56) Update web.xml with the servlet information
Step 21: (15-09-2020 01:46:02) User left click on "Run As (menu item)"
Step 22: (15-09-2020 01:46:03) User left click on "1 Run on Server Alt+Shift+X, R (menu item)"
Step 23: (15-09-2020 01:46:05) Select the server
Step 24: (15-09-2020 01:46:07) User left click on "&Next (button)" in "Run"
Step 25: (15-09-2020 01:46:08) User left click on "ServletDemo (tree item)" in "Run"
Step 26: (15-09-2020 01:46:09) User left click on "Finish (button)" in "Run"
Step 27: (15-09-2020 01:46:11) User left click on "Restart server (radio button)" in " Server prompt "
Step 28: (15-09-2020 01:46:13) User left click on "OK (button)" in "Server prompt"
Step 29: (15-09-2020 01:46:20) Check the HTTP Status 404 – Not Foun. User left click on "Address and search bar (edit)"
Step 30: (15-09-2020 01:46:28) User keyboard input “/test” and [ENTER]
Step 31: (15-09-2020 01:46:29) "First Servlet (document)"

You might also like