Servlet 1
Servlet 1
================
A web application is a collection of web resource programs having the capability to
generate web pages.
Based on the position and execution above web resource programs are divided into
two types.
Web application and web resource program execute at the time when they have
requested.
Diagram: servlet1.1
2) Web Server will trap that request and it passes that request to appropriate web
resource program.
Web Server
==========
A web server is a piece of software which is used to automate whole process of web
application and web resource program execution.
ex:
Tomcat, Resin, Web Logic, JBoss, GlassFish and etc.
> It traps the request and passes that request to appropriate web resource program.
> It takes the output from web resource program and send to browser window as
dynamic response.
> It is used to automate whole process of web application and web resource program
execution.
Web Container
=============
Web container is a software application or a program which is used to manage whole
life cycle of web resource program i.e from birth to death.
Some part of industry consider servlet container and JSP container are web
containers.
Every server contains servlet container and JSP container. So we don't need to
arrange it seperately.
Tomcat
=======
Version : 9.x
Website : www.tomcat.apache.org
Download link :
https://drive.google.com/file/d/1u547booDvVY630rN4drEQ8c8lU0In7T6/view?
usp=drive_link
3) JDK location
Servlet
========
Servlet is a dynamic web resource program which is used to enhance the
functionality of web server, proxy server or IDE's server.
or
Servlet is a java based dynamic web resource program which is used to generate
dynamic web pages.
or
Servlet is a single instance multithread java based web resource program which is
used to develop web applications.
Diagram: servlet1.2
Servlet API's
==============
API is a collection of packages.
ex:
javax.servlet package
javax.servlet.http package
Important terminologies
========================
javax.servlet.Servlet(I)
|
|
javax.servlet.GenericServlet(AC)
|
|
javax.servlet.http.HttpServlet(C)
Assignment
===========
Q) Write a jdbc application to create a student table?