Servlet Example

java-ee-thumbnail

Java EE Tutorials Servlets Tutorials Servlets Interview Questions Let us create a simple servlet example using Eclipse IDE. To create servlet application we need to use following steps: Environment used: JDK Eclipse IDE Apache Tomcat Server Java-api Open the Eclipse IDE and Go to File Menu ->New->Select Dynamic Web Project. Enter Project Name click on […]

Generic Servlet and Http Servlet

java-ee-thumbnail

Java EE Tutorials Servlets Tutorials Servlets Interview Questions Generic Servlet GenericServlet is an abstract class defined in the Servlet API. For implementing class we need to implement all the methods in javax.servlet.Servlet Interface. Most of the Servlet objects do not need initializing and destroying operations but still we need to implement all the methods in […]

Servlet LifeCycle

java-ee-thumbnail

Java EE Tutorials Servlets Tutorials Servlets Interview Questions Servlets are small programs that run at server side and creates dynamic web pages. Servlets respond to any type of requests sent by user. In MVC architecture servlet act as controller. The controller is the logic that processes and responds to the user requests.┬áLife Cycle of Servlets […]

Servlet API

java-ee-thumbnail

Java EE Tutorials Servlets Tutorials Servlets Interview Questions The Servlet API is supported by all Servlet containers, such as Tomcat and Weblogic, etc. The Application Programming Interface (API) contains interface and classes to write a servlet program. The servlet API contains two packages as listed below: javax.servlet javax.servlet.http Package javax.servlet javax.servlet contains a number of […]

Introduction to Servlet

java-ee-thumbnail

Java EE Tutorials Servlets Tutorials Servlets Interview Questions What is Servlet ? Servlets are an important component of a J2EE application. Servlets along with JavaServer Pages (JSP) and EJB modules can be termed as server-side J2EE component types. Servlet is a Java Programming Language. Servlets are used to create web applications. Servlets are used to […]