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/ 10
Servlets
JSP Life Cycle : JSP are translated into Servlets
Servlets - What are they? Servlets are objects of Java classes which resides in a web server in order to respond to HTTP requests. Servlets may return data of any type but they often return HTML.
All servlets classes must import the following packages:
All servlets classes must extend the HttpServlet class
Servlets classes must provide and implementation for doGet, doPost,
ProcessRequest, init, destroy methods Email List Application HTML Code <html> <head> <title> Email List application</title> </head> <body> <h1>Join our email list</h1> <p>To join our email list, enter your name and email address below. <br> Then, click on the Submit button.</p>