Category Archives: Servlet

Six Steps to Running Your First Servlet

After you have installed and configured Tomcat, you can put it into service:- Create a directory structure under Tomcat for your application. Write the servlet source code. You need to import the javax.servlet package and the javax.servlet.http package in your

How a Servlet Works ?

A servlet is loaded by the servlet container the first time the servlet is requested. The servlet then is forwarded the user request, processes it, and returns the response to the servlet container, which in turn sends the response back

Servlet Application Architecture

What is servlet? A servlet is a Java class that can be loaded dynamically into and run by a special web server. This servlet-aware web server is called a servlet container, which also was called a servlet engine in the