0% found this document useful (0 votes)
2 views

Building_a_simple_java_web_application

The document outlines the process of building web applications using server-side core Java, highlighting the architecture, components, and technologies involved, such as Servlets and web frameworks like Spring. It explains the roles of web servers, HTML, and HTTP in client-server communication, and provides a step-by-step guide to creating a simple web application. The summary emphasizes the ease of development facilitated by Java frameworks, which help reduce the developer's workload.

Uploaded by

synragamer
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Building_a_simple_java_web_application

The document outlines the process of building web applications using server-side core Java, highlighting the architecture, components, and technologies involved, such as Servlets and web frameworks like Spring. It explains the roles of web servers, HTML, and HTTP in client-server communication, and provides a step-by-step guide to creating a simple web application. The summary emphasizes the ease of development facilitated by Java frameworks, which help reduce the developer's workload.

Uploaded by

synragamer
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Presented by-Vivek Kumar Gautam

Contents:-
 What is server side core java Application?
 What is a web application?
 How to build a web application using Java?
 Web server and client
 HTML and HTTP
 Servlet
 Why are the Servlets Useful?
 What is web application framework?
 Steps to build a simple web application
 summary
server side core Java and their architecture:-
 Server-side core Java applications are programs that
run on a server to handle client requests and provide
responses. They are typically used to build web
applications, enterprise applications, and other
networked applications that require high scalability,
reliability, and performance.
 Java is a popular language for server-side development
because of its security, and platform independence.
 The architecture of server-side Java applications is
designed to provide scalability, fault tolerance, and
performance.
 Typically, a server-side Java application consists of
three layers: the presentation layer, the business logic
layer, and the data layer.
What is a web application:-
 a web application is a software program that is accessed
over the internet through a web browser.
 Web applications are designed to offer a user-friendly and
interactive experience to the user. They can perform a wide
variety of tasks, such as e-commerce transactions, social
networking, online banking, content management etc. Web
applications can be created using a
variety of
programming
languages and
frameworks,
including HTML,
CSS, JavaScript
and many others.
How to build a web application using Java
• Java is one of the most used programming languages for developing
dynamic web applications. A web application is computer software
that utilizes the web browser and technologies to perform tasks over
the internet. A web application is deployed on a web server. Java
provides some technologies like Servlet and JSP that allow us to
develop and deploy a web application on a server easily. It also
provides some frameworks such as Spring, Spring Boot that simplify
the work and provide an efficient way to develop a web application.
They reduce the effort of the developer.
• We can create a website using static HTML pages and style them
using CSS, but we need server-side technology when we want to
create a dynamic website. In this section, we will see how to create a
website using Java Servlets and HTML. Further, we will see how
these technologies are useful for developing a web application.
Web server and client
 The web server is a process that handles the client's
request and responds. It processes the request made
by the client by using the related protocols. The main
function of the webserver is to store the request and
respond to them with web pages. It is a medium
between client and server. For example, Apache is a
leading webserver.
HTML and HTTP :-
 The HTML stands for Hyper Text Markup Language; it is
a common language for Web Server and Web Client
communication.
 The HTTP stands for Hyper Text Transfer Protocol; it is
a communication protocol between the client and the
server. HTTP is the TCP/IP protocol used to deliver
webpages from servers to clients.
Servlet:-
 A Servlet is a Java program that runs within a web
server; it receives the requests and responds to them
using related protocols (Usually HTTP).
 The Servlets are capable enough to respond to any type
of request; they are commonly used to make the
application functional.
Why are the Servlets Useful?
 Web servers are capable enough to serve static
HTML requests, but they don't know how to deal
with dynamic requests and databases.
 In Java, there are two technologies Servlet and
JSPs, that deals with dynamic content and
database. Java also provides frameworks such as
Spring, Spring Boot, Hibernate, and Struts to use
the servlet and JSP easily.
What is web application framework?
 A web application framework is a software framework
that is designed to support the development of web
applications. These frameworks provide a set of pre-
built tools and libraries that developers can use to build
web applications more easily and efficiently.
 Examples of popular web application frameworks
include Ruby on Rails, Django (Python), Laravel (PHP),
Spring (Java), and Express.js (Node.js/JavaScript).
 Java has several popular web application frameworks
like one is spring is a widely used framework that
provides a comprehensive programming for modern
Java-based enterprise applications.
Steps to build a simple web application:-
Step 1: Set up Java Development Kit (JDK), Eclipse or
IntelliJ IDEA, a web server, and a web application
framework(like spring boot).
Step 2: Create a new project and a simple web page add
some basic HTML tags to create a heading, a
paragraph, and an image.
Step 3: Create a Java servlet that will handle requests to
the web page created in Step 2. In the IDE, create a
new Java class and extend the HttpServlet class.
Override the doGet() method and add code to generate
a response that includes the content of the web page.
Step 4: Deploy the application to the web server.
Step 5: Test the application by accessing the web page in a
web browser.
Summary:-
In this section, we have discussed how to
create a web application using Java Servlets.
Java facilitates with other frameworks such as
Spring and Spring Boot that helps us to develop
web applications easily. These frameworks
reduce the effort of the developer.
Thank You

You might also like