GoConqr has a new look! Let us know what you think.

Notes

Untitled

akashparekh23 Java English 1 page

Content of the notes (1)

Page 1

Java Servlet technology provides dynamic, user-oriented content in web applications using a request-response programming model.

What Is a Servlet: A servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed by means of a request-response programming model.

use javax.servlet and javax.servlet.http for writing servlet

must implement servlet interface ,defines lifecycle method

to use generic service you have to use GenericServlet class

http servlet provides doGet and doPost methods.

Servlet Lifecycle:

if instance of servlet does not exists then web container

load servlet class

create instance of that class

Initilize the servlet instance by calling init method.

invoke service method by passing request and response objects,

to remove servlet web container finally call method destroy method.

New Page

Information

Description
Java Note on Untitled, created by akashparekh23 on 06/10/2013.
Created by
akashparekh23
Views
30
Tags
java
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?