Servlet Part-7 (Servlet Mapping with Deployment Descriptor/web.xml file)

Deployment descriptor file which is also known as web.xml file, is used to configure the web app as well as servlet.

It is most important while the web app is to be deployed on the server, for example the database connection is going to differ while you deploy the app on server, so its preferable to define such settings in web.xml file because its a tag file which can be easily editable in any editor.

If we define the such settings in java file they need to be edited and re-compile on server, which is not feasible.

OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7

follow me @
https://raviroza.wordpress.com/
https://twitter.com/raviozaIT
https://www.facebook.com/ravi.oza.it

Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101

Watch “Servlet Part-3 (Generic Servlet Example)” on YouTube

Practical Implementation of Servlet using GenericServlet Class

Step to Create Servlet using GenericServlet Class

  1. Apache Tomcat configuration in Eclipse for web projects
  2. Creating Dynamic web project
  3. Add java class that extends the GenericServlet class (in new class wizard)

OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7

follow me @
https://raviroza.wordpress.com/
https://twitter.com/raviozaIT
https://www.facebook.com/ravi.oza.it

Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101

Watch “Servlet Part-2 (Implementation)” on YouTube

This video contains the following

  • Servlet Architecture
  • Packages of Servlet
  • Generic Servlet
  • Http Servlet
  • HTTP Response-Request Model
  • Tomcat Container
  • Servlet Implementation

OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7

follow me @
https://raviroza.wordpress.com/
https://twitter.com/raviozaIT
https://www.facebook.com/ravi.oza.it

Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101