Please enable JavaScript.
Coggle requires JavaScript to display documents.
Advance Web Development Chapter 1 (1.3 Servlet API (Servlets Technology…
Advance Web Development Chapter 1
1.1 Component Of Web Application
What Is Web Application:A Web Application is set of web pages that are generated in response to user request.
Component Of Web Application: 1.Client 2.Server 3.Internet
Static Web Page:Html is the language that the browser renders to the web pages that make up a web application's user input.
Component of Java web Application
A servlet/JSP engine, or servlet/JSP container, is the software that allows the web server to work with servlets and JSPs.
The Java Enterprise Edition (Java EE) specification describes how web servers can interact with servlet/JSP engines.
For a servlet/JSP engine to work, it must have access to Java’s Java Development Kit (JDK), which comes as part of the Java standard Edition (Java SE)
1.2Understand Java EE Platform
Java EE(Enterprise Edition)PLatform:
Java Platform in Enterprise Edition (Java EE) is the standard in community-driven enterprise software.
Java EE is developed using the Java Community Process, with contributions from industry experts, commercial and open source organizations, Java User Groups, and countless individuals.
Each release integrates new features that align with industry needs, improves application portability, and increases developer productivity.
The Java EE platform provides an API and runtime environment for developing and running large-scale, multi-tiered, scalable, reliable, and secure network applications.
Why Is Java EE
Help developers create large scale, multi-tiered, scalable, reliable and secure network applications.
Called “enterprise application” because these applications are designed to solve the problems encountered by large enterprises.
Features: Powerful, security, reliability, reduce complexity by providing dev. model, API and runtime environment
Java EE vs Java ME vs Java SE
All Java platforms consist of a Java Virtual Machine (VM) and an application programming interface (API) ~ can run on any compatible system with all the advantages of the Java programming language: platform-independence, power, stability, ease-of-development, and security.
Java Enterprise Platform
Business logic
Session Beans
Entity Beans
Message-Driven Beans
Data access logic
In the data access layer, JDBC is used to connect to databases, make queries, and return query results, and custom connectors work with the Sun Java System Application Server to enable communication.
Presentation logic
The presentation source code language may differ from other code assets
The production process for the application may require the work to be done at separate times and locations
Different workers have different skill sets, and presentation skills do not always coincide with skills for coding business logic.
1.3 Servlet API
Servlet Definition
Java Servlets are programs that run on a Web or Application server and act as a middle layer between a request coming from a Web browser or other HTTP client and databases or applications on the HTTP server.
Servlets Technology
Servlet Technology is used to create web application (resides at server side and generates dynamic web page).
There are many interfaces and classes in the servlet API such as Servlet, GenericServlet, HttpServlet, ServletRequest, ServletResponse etc.
Advantages of Servlets
The web container creates threads for handling the multiple requests to the servlet.
Threads have a lot of benefits over the Processes such as They share a common memory area, lightweight, cost of communication between the threads are low.
Servlets Architecture
HTTP is request/response protocol which is based on client/server based architecture. In this web browser, search engines, etc behaves as a HTTP clients, and the Web server like Servlet behaves as a server.
Servlet Life Cycle
4 step
The servlet is initialized by calling the init() method.
The servlet calls service() method to process a client's request.
The servlet is terminated by calling the destroy() method.
Finally, servlet is garbage collected by the garbage collector of the JVM.