Introduction to Servlets
Learn Introduction to Servlets (Intro to Web & Servlets, JSP Servlets) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
What is a Servlet? • A Servlet is a Java program that runs on a web server and handles client requests. • Servlets are used to generate dynamic web content (HTML, JSON, XML). • They extend HttpServlet class.