SlideShare a Scribd company logo
1 of 101
History of web application





There are 4 components involved
 Webpage
 Website
 Web Browser
 Web Server
Earlier, a web page merely displayed static content (html)
But, today’s web application provides interactive experience as if
users are talking face to face (dynamic content).
 Chatting
 Online shopping
 Online reservation
 and the list keeps on increasing………….
Web Application


What is web application?




Application that runs on WWW is known as web
application.

How does it work?
Request

Response
Client

Server
Common Gateway interface




It was the first technique for creating dynamic
content.
With CGI, server passes the request to CGI
program and the o/p is sent to the client

Request

Response
Client

Server
Limitations


It creates a new process to run CGI program.



It requires time and significant server resources.
 Number of request cannot be handled
concurrently.

Process for CGI 1
Process for CGI 2
Process for CGI 1

Request for CGI 1
Request for CGI 2
Request for CGI 1

Server
Limitations


It creates a single process for each CGI program.



It requires time and significant server resources.

Request for CGI 1

Process for CGI 1

Request for CGI 2
Request for CGI 1

Process for CGI 2
Server
Definition




Servlet is a Java class that extends the
functionality of web server.
Eg:


Mail Server


Servlet is a class that performs virus scan to attached
files.
Benefits



Only one copy of servlet is loaded into JVM.
Each request begins a new thread to servlet than a
process.




Saves time
Response time increases
It is scalable
JVM

Request for Servlet 1
Request for Servlet 2
Request for Servlet 1

Servlet1
thread

Servlet2
User

Web
Browser
J2EE Server

Java Servlet
EJB

Web server

Database
Http



HttpRequest

Client ---------------------------------Server
GET/index.html/HTTP1.1
Client----------------------------------Server
User-Agent:Microsoft IE
Blank line is sent




Client -------------- HttpResponse
----------Server
Client --------------------------------Server
HTTP1.1 200 OK
Server: Apache Tomcat
Content-Type: text/html



Blank line is sent
Client --------------------------------Server
Index.html
Servlet Implementation


Servlet use classes and interfaces from 2
packages


javax.servlet




It contains classes to support generic protocol

javax.servlet.http


It extends classes in servlet package to add HTTP
specific functionality.
javax.servlet package
javax.servlet
ServletConfig

Servlet
ServletRequest

ServletResponse
java.lang
Object
Exception

GenericServlet
ServletException

MyServlet
Unavailable Exception
javax.servlet.http package
javax.servlet

javax.servlet.http

Servlet
ServletRequest
ServletResponse

HttpServletRequest
HttpServletResponse

java.lang
Object
Exception

GenericServlet
ServletException

HttpServlet
Servlet API













Servlet Interface
GenericServlet Class
HttpServlet Class
HttpServletRequest Interface
HttpServletResponse Interface
Cookie Class
HttpSession Interface
SingleThreadModel Interface
ServletException class
UnavailableException class
ServletContext interface
ServletConfig Interface
Servlet Interface


Every servlet must implements the
javax.servlet.Servlet interface.



It can implement in 2 ways:



Directly implementing interface
Extending any of 2 classes:



javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
Methods






init()
service()
destroy()
getServletInfo()
getServletConfig()
service()


Syntax:


public abstract void service(ServletRequest
req,ServletResponse res) throws
ServletException,IOException



It is called whenever the request is made
It must be overridden in servlet
It receives request via ServletRequest and Sends
response via Servlet Response



GenericServlet


It provides basic implementation of the
servlet interface for protocol-independent
servlets.



It has init() and destroy() methods to perform
setup and clean-up tasks.



service() method is defined abstract and must
be overidden.
GenericServlet subclass

request
service()
response
HttpServlet


It is an abstract class that is used for
developing HTTP servlets.



It does not override the service() method.



It overrides doGet() to handle GET requests
and doPost() to handle POST requests
HttpServlet subclass

request

doGet()
service()

response

doPost()

Web Server
Methods








service()
doGet()
doPost()
doDelete()
doOption()
doPut()
doTrace()
doGet() or doPost()


protected void doGet(HttpServletRequest
req,HttpServletResponse res) throws
ServletException,IOException



protected void doPost(HttpServletRequest
req,HttpServletResponse res) throws
ServletException,IOException
HttpServletRequest interface













getParameter()
getParameterNames()
getParameterValues()
getHeaders()
getQueryString()
getRemoteAddr()
getRemoteHost()
getAttribute()
setAttribute()
getAttributeNames()
getCookies()
getSession()
getParameter()


Syntax:



Public abstract String getParameter(String name)
Description:





Returns value of the named parameter as a string
Returns null if the parameter does not exist or empty
string.
Eg:


String name=req.getParameter(“t1”) //t1 is name of text box
getParameterValues()


Syntax:




Public String[] getParameterValues(String name)

Description





It returns all the values of name parameter as an
array of string object
Returns null if he parameter does not exist.
Eg:


String values []=req.getParameterValues(String name)
getParameterNames()


Syntax:




Public Enumeration getParameterNames()

Description:






It returns all the parameter names as an
enumeration of string
It returns an empty enumeration if the servlet has
no parameters.
Eg:


Enumeration en=req.getParameterNames();
Enumeration Methods


hasMoreElements()





Public boolean hasMoreElements()
Returs true if and only if this enumeration object contains at least one
more element to provide; false otherwise.
Eg: while(en.hasMoreElements())
{
}



nextElement()






Public Object nextElement()
Returns the next element of this enumeration if this enumeration object
has at least one more element to provide.
Throws: NoSuchElementException - if no more elements exist.
Eg: en.nextElement()
getHeader()


Syntax:


Public String getHeader(String name)
Description
 Returns the value of the named header as a string
 It takes name of header and retrieve the value of header
Eg:
String val=req.getHeader(name of header)

getHeaderNames()


Syntax:



Public Enumeration getHeaderNames()
Description:
It Returns the names of all the headers as an enumeration of
string objects.
Eg:
Enumeration en=req.getHeaderNames()
While(en.hasMoreElements())
{
String name=(String)enum.nextElement();
String val=req.getHeader(name);
}

getQueryString()


Syntax:



Public String getQueryString()
Description:




It returns the raw query string of the request or null if no
query string is send.
Eg:


req.getQueryString()
getRemoteAddr()


Syntax:



public String getRemoteAddr()
Description:




Returns IP address of the client machine as a string.
It could be remote address of proxy server also
Eg:


String addr=req.getRemoteAddr()
getRemoteHost()


Syntax:



public String getRemoteHost()
Description:




Returns host name of the client machine as a string.
It could be remote name of proxy server also
Eg:


String addr=req.getRemoteHost()
getAttribute()


Syntax:




Public Object getAttribute(String name)

Description




It returns the value of a server specific attribute for
the request.
It returns null if the server does not support the
named attribute.
getAttributeNames()


Syntax:




Public Enumeration getAttributeNames()

Description


It returns all the attribute names as an
Enumeration of string, supported by web server or
null if not attributes are specified
setAttribute()


Syntax:



Public void setAttribute(String name.String value)
Description



It set new attribute of server
It takes 2 argumnets
Name
 Value
The new value is appended to the Enumeration returned by
getAttributeNames() method

Cookies


Cookie is a bit of information sent by a
webserver to a browser that can be later read
back from that browser.



Cookie class


javax.servlet.http.Cookie class is provided by
servlet API
Creating cookie







Cookie can be created with cookie()
constructor
public cookie(String name,String value)
It creates new cookie with initial name and
value.
Eg:


Cookie ck = new Cookie(“emailid”,”abc”);
Sending a cookie



Sending - Response
A servlet can send a cookie to client by
passing a cookie object to





addCookie() method of HttpServletResponse
interface.
public void addcookie(Cookie obj);
Eg:


res.addCookie(ck);
Reading a cookie







Reading –request
A servlet retrieves cookies by calling
getCookies() method of HttpServletRequest
inerface
Public Cookie[] getCookies();
Returns array of cookie object sent by
browser or null if no cookies are sent
Attributes of Cookies
Attribute

Description

Name

Name of cookie

Value

Value of cookie

Version

Set version of cookie

Domain

Domain name that will read a cookie

MaxAge

Expiry date in seconds
-ve value indicates default, it will
expire when browser is closed
0 indicates to delete immediately

Path

Path where cookie is sent

Secure

Boolean value true/false

comment

Comment about it

Attributes can be set and retrieved by setXXX() and getXXX() method of Cookie class
HttpServletResponse








getWriter()
setContentType()
addCookie()
encodeURL()
sendRedirect()
setHeader()
setStatus()
getWriter()


Syntax:




Public abstract PrintWriter getWriter() throws
IOException

Description





Returns PrintWriter for writing character-based
response data.
Eg:
PrintWriter out=res.getWriter();
setContentType()


Syntax:




Public abstract void setContentType(String type)

Description





It sets the content type of the response to be
specified type.
It sets the Content-type HTTP header
res.setContentType(“text/html”)
addCookie


Syntax:




Public abstract void addCookie(Cookie ck)

Description:





Add the specified cookie to the response.
Browsers accept only 20 cookies per site,300 total
per user and size cookie’s size 4096 bytes.
res.addCookie(ck)
sendRedirect()


Syntax:




Public abstract void sendRedirect(String location)
throws IOException

Description:





Redirects the response to the specified location.
The location must be absolute URL
Eg:
res.sendRedirect(“http://localhost:8084/test”)
encodeURL()


Syntax:




Public abstract String encodeURL(String url)

Description:


Returns specified URL encoded to include the
session information.



String url=res.encodeURL(“http://localhost:8084/test?id=123”)
res.sendRedirect(url);


setHeader()


Syntax:




Public abstract void setHeader(String name,String
value)

Description:





Sets the value of the named header as String.
If header has already been set, the new value
overwrites the previous one.
res.setHeader(“Set-Cookie”,”ck”);
setStatus()


Syntax:





Public abstract void setStatus(int sc)
Public abstract void setStatus(int sc, String sm)

Description:






It sets HTTP status code.
The code can be specified using numeric value or by using
SC_XXX codes.
res.setStatus(404)
res.setStatus(404,”Sorry ! File not found”)
SC_XXX codes


Constants defined in HttpServletResponse





SC_OK
SC_NOT_FOUND
SC_INTERNAL_SERVER_ERROR
SC_BAD_REQUEST

200
404
500
400
Session


Session is period between user login and
logout.

Login

Session

logout

Session data should be available in all the
pages after user logins until he logs out.
Session Tracking Approaches



HTTP is stateless protocol
To maintain the state of user 4 approaches
are used





Hidden form fields
URL Rewriting
Cookies
Session API
Hidden Fields





Hidden fields are not displayed on browser.
They are sent to the sever when the form is
submitted
Eg:




<form action=“login”>
<input type=“hidden” name=“t1” value=“abc”>
</form>

String name=req.getParameter(“t1”);
Pros and Cons


Advantages





They can always be used
They are supported by browser

Disadvantage


They only work for sequence of forms
URL Rewriting


With this method, URL can be dynamically
modified or rewritten to include extra
information.



http://localhost:8084/test
http://localhost:8084/test/123
http://localhost:8084/test?id=123




URL
extra path
extra parameter
Limitation





Limit to size of URL (255 char)
It cannot be used if method used by target
URL is POST
Parameter name collision might occur
Cookies


Advantages





Efficient, easy way to implement session
Customize cookie

Disadvantages




Browser doesn’t support cookies
Deleted by the client
Modified by the client
Session API


Session tracking is efficient method of
handling session



Every user of a site is associated with a
javax.servlet.http.HttpSession object


A servlet uses its request object’s getSession()
method to retrieve the current session
getSession()


Syntax:



Public HttpSession getSession(boolean create)
Description


It returns the current session associated with the user.



If user has not created session, it will create if true is passed
as an argument or returns null if false is passed



To enable session, this method must be called at least once
before any output is written.



HttpSession ses=req.getSession(true);
HttpSession











setAttribute()
getAttribute()
getAttributeNames()
removeAttribute()
getId()
getCreationTime()
getLastAccessedTime()
setMaxInactiveInterval()
isNew()
invalidate()
setAttribute()


Syntax:




Public abstract void setAttribute(String name,Object
value)
Description:




Binds the specified object value under specified name in the
session.
Eg:


ses.setAttribute(“id”,”abc”)
getAttribute()


Syntax:




Public abstract object getAttribute(String name)

Description:




Returns the object bound in the session under the
specified name or null if session is invalid.
String val=(String)ses.getAttribute(id);
// output abc
getAttributeNames()


Syntax:



Public abstract Enumeration getAttributeNames()
Description




Return the enumeration of all names of attributes or null
if not attributes are set
Eg:
Enumeration en=ses.getAttributeNames()
While(en.hasMoreElements())
{
String name=(String)en.nextElement()
}
removeAttribute()


Syntax:






Public abstract void removeAttribute(String name)
Description
Removes the object bound to the specified name
or does nothing if there is no binding,
Eg:


ses.remove Attribute(id);
invalidate()


Syntax:




Public abstract void invalidate()

Description:



Causes the session to be immediately invalidated.
All objects stored in the session are unbound.
getId()


Syntax:




Public abstract String getID()

Description




Returns the unique string identifier assigned to
this session.
Eg:


String id=ses.getID();
getCreationTime()


Syntax:




Public abstract long getCreationTime()

Description


Returns the time at which the session was
created, as a long representing the number of
milliseconds since epoch.
getLastAccessTime()


Syntax:




Public abstract long getLastAccessTime()

Description


Returns the time at which the client last sent a
request with this session, as a long representing
the number of milliseconds since epoch.
setMaxInactiveInterval()


Syntax:







public void setMaxInactiveInterval(int interval)
Specifies the time, in seconds, between client
requests before the servlet container will
invalidate this session.
A negative time indicates the session should
never timeout.
Eg:


ses.setMaxInactiveInterval(300);
HTTP Request Methods



doDelete()
Syntax:


protected void doDelete(HttpServletRequest
req,HttpServletResponse res) throws
ServletException,IOException



The delete method is used to delete the
documents directly from the server



doPut()
Syntax:




protected void doPut(HttpServletRequest
req,HttpServletResponse res) throws
ServletException,IOException
It is used to put the document’s directly to the
sever



doTrace()
Syntax:




protected void doTrace(HttpServletRequest
req,HttpServletResponse res) throws
ServletException,IOException
It is used as debugging aid- it returns to the client
exact contents of its request



doOption()
Syntax:




protected void doOption(HttpServletRequest
req,HttpServletResponse res) throws
ServletException,IOException
It is used to ask the sever which methods it
supports or what options are available on the
server
SingleThreadModel interface



It is defined in javax.servlet package
Syntax:




Public interface SingleThreadModel{
}

If a servlet implements this interface,


The server ensures that each instance of the
servlet handles only one service request at a time.
ServletException


Exception



ServletException



UnavailableException
ServletException
It is a class which handles generic exception
thrown by servlet encountering difficulties.
 Class Summary
Public class ServletException extends
Exception
{
public ServletException();
public ServletException(String message);
}





Constructs a new ServletException with an
optional descriptive message.
If message is specified, it can be retrieved
using getMessage() method.
UnaviableException




A servlet can throw an unavailable exception
at any time to indicate that it is not available
to service client requests
There are 2 types of unavailability



Permanent
Temporary
Class Summary


public class UnavailableException extends
ServletException

{
public UnavailableException (int sec,Servlet servlet, String msg)
public UnavailableException(Servlet sevlet,String msg)
public Servlet getServlet()
public int getUnavailableSeconds()
public boolean isPermanent()

}
Methods


Public Servlet getServlet()




Public int getUnavailableSeconds()




Returns the servlet that threw this exception

Returns number of seconds for which servlet will
be unavaiable. A –ve value indicated permanent
unavailability.

Public boolean isPermanent()


Returns true if the servlet is unavailable indefintely
Servlet Life Cycle


Servlet consist of following cycle


Create and initialize the servlet




Handle zero or more service calls from clients




init()

doGet() or doPost()

Destroy the servlet and then garbage collect it


destroy()
Init()
Syntax:


Public void init(ServletConfig config) throws
ServletException



It is used to initialize variables and objects that are
used throughout the java Servlet.



The servletConfig object supplies a servlet with
information about its initialization (init parameters)
available to servlet and not with request
ServletConfig() interface




It is used to pass initialization and context
information to servlets
Methods




public abstract String getInitParameter(String name)
public abstract Enumeration getInitParameterNames()
Public abstract ServletContext getServletContext()
doGet() or doPost()


protected void doGet(HttpServletRequest
req,HttpServletResponse res) throws
ServletException,IOException



protected void doPost(HttpServletRequest
req,HttpServletResponse res) throws
ServletException,IOException
Destroy()





Public void destroy()
Called when servlet is preparing to unload a
servlet.
Used to clean up any outstanding resources
(database connection, threads, file handle)
What is Context?


In terms of Servlet, a context is a directory that
contains a single web application









a set of related html files
JavaBeans
JSP files and/or servlets
The terms context and webapp are pretty much
synonymous. A context directory may contain one or more
servlets.
The ServletContext interface defines methods that can be
used in non-request specific manner.

ServletContext sc=this.getServletContext();
ServletContext









getContext()
getServerInfo()
getInitParameter()
getInitParameterNames()
getAttribute()
setAttribute()
removeAttribute()
getRequestDispatcher()
getContext()


Syntax:




Public ServletContext getContext(String url)

Description






Returns the context object for the resource at the
specified path on the server.
The path must be relative with /
ServletContext sc1=sc.getContext()
getServerInfo


Syntax:




Public String getServerInfo()

Description





It returns a string object containing information
about the sever on which servlet is running.
It will contain server name and version
Apache tomcat/6.0.18
getInitParameter()


Syntax:




Public String getInitParameter(String name)

Description:




Context parameters can be used in entire web
application not in specific servlet unlike init
parameter of Config object.
It returns a string containing the value of specified
parameter or null if no init parameter exists.
getInitParameterNames()


Syntax:




Public Enumeration getInitParameterNames()

Description:


It returns a Enumeration containing the
initialization parameters associated with invoking
ServletContext object.
setAttribute()


Syntax:




Public abstract void setAttribute(String name,Object
value)
Description:




Binds the specified object value under specified name in the
context
Eg:


sc.setAttribute(“id”,”abc”)
getAttribute()


Syntax:




Public abstract object getAttribute(String name)

Description:




Returns the object bound in the context under the
specified name.
String val=(String)sc.getAttribute(“id”);
// output abc
removeAttribute()


Syntax:






Public abstract void removeAttribute(String name)
Description
Removes the object bound to the specified name
or does nothing if there is no binding,
Eg:


sc.removeAttribute(“id”);
Attributes


Request
 Attributes are objects associated with a request. Attributes may
be set by the a servlet to communicate information to another
servlet (via the RequestDispatcher).



Session
 A servlet can bind an object attribute into an HttpSession
implementation by name. Any object bound into a session is
available to any other servlet that handles a request identified as
being a part of the same session.



Context
 A servlet can bind an object attribute into the context by name.
Any attribute bound into a context is available to any other servlet
that is part of the same Web application.
getRequestDispatcher()


Syntax:




Public RequestDispatcher getRequestDispatcher(String url)

Description


It reuturns a RequestDispatcher object located at
the specified path. The path must be relative
beginning with /



requestDispatcher rd=sc.getRequestDispatcher(“/test”);
RequestDispatcher() interface


Defines an object that receives requests from the
client and sends them to any resource on the
server. A single client request can be passed to
many resoruce such as:






servlet
HTML file
JSP file

Methods



forward()
include()
forward()


Syntax:
 public void forward(ServletRequest request, ServletResponse
response) throws ServletException, IOException



Forwards a request from a servlet to another resource (servlet,
JSP file, or HTML file) on the server.



forward should be called before the response has been
committed to the client.



If the response already has been committed, this method throws
an IllegalStateException. Uncommitted output in the response
buffer is automatically cleared before the forward.



rd.forward(req,res)
include()


Syntax:
 public void include(ServletRequest request, ServletResponse
response) throws ServletException, IOException



Includes the content of a resource (servlet, JSP page, HTML file)
in the response.



The ServletResponse object has its path elements and
parameters remain unchanged from the caller's. The included
servlet cannot change the response status code or set headers;
any attempt to make a change is ignored.



rd.include(req, res);

More Related Content

What's hot (20)

Java collections concept
Java collections conceptJava collections concept
Java collections concept
 
Classes, objects in JAVA
Classes, objects in JAVAClasses, objects in JAVA
Classes, objects in JAVA
 
Wrapper class
Wrapper classWrapper class
Wrapper class
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Spring boot
Spring bootSpring boot
Spring boot
 
Jsp/Servlet
Jsp/ServletJsp/Servlet
Jsp/Servlet
 
Java 8 Lambda Expressions
Java 8 Lambda ExpressionsJava 8 Lambda Expressions
Java 8 Lambda Expressions
 
Java multi threading
Java multi threadingJava multi threading
Java multi threading
 
Collections - Maps
Collections - Maps Collections - Maps
Collections - Maps
 
Servlets
ServletsServlets
Servlets
 
Java/Servlet/JSP/JDBC
Java/Servlet/JSP/JDBCJava/Servlet/JSP/JDBC
Java/Servlet/JSP/JDBC
 
OOP java
OOP javaOOP java
OOP java
 
Wrapper classes
Wrapper classes Wrapper classes
Wrapper classes
 
ASP.NET Web API
ASP.NET Web APIASP.NET Web API
ASP.NET Web API
 
Thread model in java
Thread model in javaThread model in java
Thread model in java
 
Generics in java
Generics in javaGenerics in java
Generics in java
 
Servlets
ServletsServlets
Servlets
 
Java Design Patterns Tutorial | Edureka
Java Design Patterns Tutorial | EdurekaJava Design Patterns Tutorial | Edureka
Java Design Patterns Tutorial | Edureka
 
Java Collection framework
Java Collection frameworkJava Collection framework
Java Collection framework
 
Collections In Java
Collections In JavaCollections In Java
Collections In Java
 

Similar to Java servlet life cycle - methods ppt

Asp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentAsp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentChui-Wen Chiu
 
Servlet ppt by vikas jagtap
Servlet ppt by vikas jagtapServlet ppt by vikas jagtap
Servlet ppt by vikas jagtapVikas Jagtap
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
 Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4... Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...WebStackAcademy
 
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
Java Servlet Programming under Ubuntu Linux by Tushar B KuteJava Servlet Programming under Ubuntu Linux by Tushar B Kute
Java Servlet Programming under Ubuntu Linux by Tushar B KuteTushar B Kute
 
SharePoint Client Object Model (CSOM)
SharePoint Client Object Model (CSOM)SharePoint Client Object Model (CSOM)
SharePoint Client Object Model (CSOM)Kashif Imran
 
Java Servlets
Java ServletsJava Servlets
Java ServletsEmprovise
 
Http programming in play
Http programming in playHttp programming in play
Http programming in playKnoldus Inc.
 
1 java servlets and jsp
1   java servlets and jsp1   java servlets and jsp
1 java servlets and jspAnkit Minocha
 
Active server pages
Active server pagesActive server pages
Active server pagesmcatahir947
 
Web Technologies -- Servlets 4 unit slides
Web Technologies -- Servlets   4 unit slidesWeb Technologies -- Servlets   4 unit slides
Web Technologies -- Servlets 4 unit slidesSasidhar Kothuru
 
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...SharePoint Saturday NY
 
Ruby HTTP clients comparison
Ruby HTTP clients comparisonRuby HTTP clients comparison
Ruby HTTP clients comparisonHiroshi Nakamura
 
Java Web Programming [2/9] : Servlet Basic
Java Web Programming [2/9] : Servlet BasicJava Web Programming [2/9] : Servlet Basic
Java Web Programming [2/9] : Servlet BasicIMC Institute
 

Similar to Java servlet life cycle - methods ppt (20)

Asp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentAsp.Net Ajax Component Development
Asp.Net Ajax Component Development
 
Servlet ppt by vikas jagtap
Servlet ppt by vikas jagtapServlet ppt by vikas jagtap
Servlet ppt by vikas jagtap
 
Working with Servlets
Working with ServletsWorking with Servlets
Working with Servlets
 
Servlet 01
Servlet 01Servlet 01
Servlet 01
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
 Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4... Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
 
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
Java Servlet Programming under Ubuntu Linux by Tushar B KuteJava Servlet Programming under Ubuntu Linux by Tushar B Kute
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
 
SignalR
SignalRSignalR
SignalR
 
SharePoint Client Object Model (CSOM)
SharePoint Client Object Model (CSOM)SharePoint Client Object Model (CSOM)
SharePoint Client Object Model (CSOM)
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Http programming in play
Http programming in playHttp programming in play
Http programming in play
 
1 java servlets and jsp
1   java servlets and jsp1   java servlets and jsp
1 java servlets and jsp
 
Basics Of Servlet
Basics Of ServletBasics Of Servlet
Basics Of Servlet
 
Active server pages
Active server pagesActive server pages
Active server pages
 
Web Technologies -- Servlets 4 unit slides
Web Technologies -- Servlets   4 unit slidesWeb Technologies -- Servlets   4 unit slides
Web Technologies -- Servlets 4 unit slides
 
Web api
Web apiWeb api
Web api
 
Web services intro.
Web services intro.Web services intro.
Web services intro.
 
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
 
Ruby HTTP clients comparison
Ruby HTTP clients comparisonRuby HTTP clients comparison
Ruby HTTP clients comparison
 
Java Web Programming [2/9] : Servlet Basic
Java Web Programming [2/9] : Servlet BasicJava Web Programming [2/9] : Servlet Basic
Java Web Programming [2/9] : Servlet Basic
 
TY.BSc.IT Java QB U3
TY.BSc.IT Java QB U3TY.BSc.IT Java QB U3
TY.BSc.IT Java QB U3
 

More from kamal kotecha

Java Hibernate Programming with Architecture Diagram and Example
Java Hibernate Programming with Architecture Diagram and ExampleJava Hibernate Programming with Architecture Diagram and Example
Java Hibernate Programming with Architecture Diagram and Examplekamal kotecha
 
Network programming in java - PPT
Network programming in java - PPTNetwork programming in java - PPT
Network programming in java - PPTkamal kotecha
 
Java rmi example program with code
Java rmi example program with codeJava rmi example program with code
Java rmi example program with codekamal kotecha
 
Jdbc example program with access and MySql
Jdbc example program with access and MySqlJdbc example program with access and MySql
Jdbc example program with access and MySqlkamal kotecha
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types pptkamal kotecha
 
Java Exception handling
Java Exception handlingJava Exception handling
Java Exception handlingkamal kotecha
 
String and string buffer
String and string bufferString and string buffer
String and string bufferkamal kotecha
 
Packages and inbuilt classes of java
Packages and inbuilt classes of javaPackages and inbuilt classes of java
Packages and inbuilt classes of javakamal kotecha
 
Inheritance chepter 7
Inheritance chepter 7Inheritance chepter 7
Inheritance chepter 7kamal kotecha
 
Introduction to class in java
Introduction to class in javaIntroduction to class in java
Introduction to class in javakamal kotecha
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operatorkamal kotecha
 

More from kamal kotecha (20)

Java Hibernate Programming with Architecture Diagram and Example
Java Hibernate Programming with Architecture Diagram and ExampleJava Hibernate Programming with Architecture Diagram and Example
Java Hibernate Programming with Architecture Diagram and Example
 
Network programming in java - PPT
Network programming in java - PPTNetwork programming in java - PPT
Network programming in java - PPT
 
Java rmi example program with code
Java rmi example program with codeJava rmi example program with code
Java rmi example program with code
 
Java rmi
Java rmiJava rmi
Java rmi
 
Jdbc example program with access and MySql
Jdbc example program with access and MySqlJdbc example program with access and MySql
Jdbc example program with access and MySql
 
Jdbc api
Jdbc apiJdbc api
Jdbc api
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
 
Java Exception handling
Java Exception handlingJava Exception handling
Java Exception handling
 
JSP Error handling
JSP Error handlingJSP Error handling
JSP Error handling
 
Jsp element
Jsp elementJsp element
Jsp element
 
Jsp chapter 1
Jsp chapter 1Jsp chapter 1
Jsp chapter 1
 
String and string buffer
String and string bufferString and string buffer
String and string buffer
 
Packages and inbuilt classes of java
Packages and inbuilt classes of javaPackages and inbuilt classes of java
Packages and inbuilt classes of java
 
Interface
InterfaceInterface
Interface
 
Inheritance chepter 7
Inheritance chepter 7Inheritance chepter 7
Inheritance chepter 7
 
Class method
Class methodClass method
Class method
 
Introduction to class in java
Introduction to class in javaIntroduction to class in java
Introduction to class in java
 
Control statements
Control statementsControl statements
Control statements
 
Jsp myeclipse
Jsp myeclipseJsp myeclipse
Jsp myeclipse
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operator
 

Recently uploaded

4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 

Recently uploaded (20)

4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 

Java servlet life cycle - methods ppt