SlideShare a Scribd company logo
1 of 32
Dr. M.C. Saxena College of
Engineering & Technology, Lucknow
An Industrial Training Presentation
for the partially fulfillment of
Two Months Industrial Training
on
“Web Development using
JSP & Servlets”
Completed at “ UPTEC Computer
Consultancy Ltd, Lucknow”
by:
Arpita Srivastava
University Roll No. 1316310012 ( 2017 Batch, 7th Sem CSE)
On 15th Nov, 2016
At
Department of Computer Science and Engineering
OUTLINES OF PRESENTATION
 Company Background
 Industrial Training Objectives
 What is Web Development ?
 Tools Used for Web Development
 Technologies Used for Web Development
 Servlets
 JSP
 JDBC
 Three Tier Architecture
 Proposed Architecture of Web Applications
 Project Assigned
 Conclusion of Training
COMPANY BACKGROUND
 UPTEC Computer Consultancy Ltd. – a premier IT
company established in 1993 as a joint venture with UP
Electronics Corporation Limited, a public sector enterprise.
 UPTEC’s various divisions presently encompass
Professional Education, Software development, IT Product
& services, Web based services and Content Design and
Development.
INDUSTRIAL TRAINING
OBJECTIVES
 The Purpose of Industrial Training is to expose
students to the world of work so that they can relate
theoretical knowledge with application in Industry.
 The Objectives of Industrial Training are:
 To develop skills in the application of theory to
practical work situations.
 To develop skills and techniques directly applicable
to their careers.
 To enhance the ability to improve students creativity
skills and sharing ideas.
WHAT IS WEB DEVELOPMENT?
 Web development broadly refers to the tasks
associated with developing websites for hosting via
intranet or Internet.
 The Web development hierarchy is as follows:
 Client-side coding
 Server-side coding
 Database technology
TOOLS USED FOR WEB
DEVELOPMENT
 IDE (Integrated Development Environment):
Netbeans 8.0 .2
 Web Server: Apache-Tomcat-8.0.23
 Database: MySQL
TECHNOLOGIES USED FOR WEB
DEVELOPMENT
 JSP (Java Server Pages): Used as a Presentation
Layer.
 Servlets: Used for Backend Processing.
 RDBMS (Relational Database Management System):
Used for storing and retrieving data.
SERVLETS
 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
Creating a Servlet:
 By implementing Servlet interface.
 By extending GenericServlet class.
 By extending HttpServlet class.
SERVLETS
Life Cycle of Servlets:
A servlet life cycle can be defined as the entire
process from its creation till the destruction. The
following are the paths followed by a servlet:
SERVLETS
Life Cycle of Servlets:
 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.
SERVLETS
Common Structure of Servlets:
 A Servlet extends the HttpServlet abstract class.
By doing that, the "servlet container" makes this
"servlet" accessible to the web.
 By "Servlet Container" are web servers such as
Tomcat that are able to understand servlets and
JSP syntax.
 Basically, a java servlet has the following
structure:
SERVLETS
import java.io.*;
import javax.servlet.http.*;
import javax.servlet.*;
public class hello extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.print("Hello World from GET method ");
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.print("Hello World from POST method ");
}
}
JSP
A JavaServer Pages component is a type of
Java servlet that is designed to fulfill the role of a
user interface for a Java web application.
JSP
Architecture:
 JSPs run in two phases
 Translation Phase
 Execution Phase
 In translation phase
JSP page is compiled
into a servlet.
 called JSP Page
Implementation class
 In execution phase the
compliled JSP is
processed Send
Response
Receive
Request
Load Servlet
Compile JSP
Servlet
Generate JSP
Servlet Source
Parse JSP
JSP Servlet
Current?
JSP Servlet
Loaded?
Generate
Response
Yes
No
NoYes
HTTP Server
JSP Container
Page Compiler Servlet
JSP Page Servlet
JSP
JSP Scripting Elements:
 JSP Scriptlet Tag: <% java source code %>
 JSP Expression Tag: <%= statement %>
 JSP Declaration Tag:
<%! field or method declaration %>
JSP
 COMMON STRUCTURE OF A JSP PAGE:
A JSP page define certain objects that are
accessible always, like: request, out, response
and session.
 For instance, to print something you can do:
 <html><title>TEST</title>
<body>
<%= "Hello World %>
</body>
</html>
 Then save this in a file with JSP extension.
JSP
JSP DIRECTIVE ELEMENTS:
 The JSP directives are messages that tells the
web container how to translate a JSP page into the
corresponding servlet.
There are three types of directives:
 page directive
 include directive
 taglib directive
JSP
JSP page Directive:
 The page directive defines attributes that apply to
an entire JSP page.
 Syntax of JSP page directive:
 <%@ page attribute="value" %>
Attributes of JSP page directive:
 import
 extends
 session
 pageEncoding
 errorPage
JSP
JSP include directive:
 The include directive is used to include the contents
of any resource it may be jsp file, html file or text
file.
Advantage of include directive:
 Code Reusability
Syntax of include directive:
 <%@ include file="resourceName" %>
JDBC
 Java JDBC(Java Database Connectivity) is a java
API to connect and execute query with the
database. JDBC API uses jdbc drivers to connect
with the database.
JDBC
5 steps to connect to the database in
JAVA:
There are 5 steps to connect any java application
with the database in java using JDBC. They are as
follows:
o Register the driver class
o Creating connection
o Creating statement
o Executing queries
o Closing connection
JDBC
 Register the Driver Class using JDBC
driver on MySQL:
Class.forName(“com.mysql.jdbc.driver");
o Create the connection object with the
MySQL database:
Connection con=DriverManager.getConnection( “jdbc:mys
ql://localhost:3306/database_name”,”username”,”passw
ord”);
JDBC
 Create the Statement object:
Statement stmt=con.createStatement();
o Execute the query:
ResultSet rs=stmt.executeQuery("select * from emp");
while(rs.next()){
System.out.println(rs.getInt(1)+" "+rs.getString(2));
}
JDBC
 Close the connection object:
con.close();
PROPOSED ARCHITECTURE OF
WEB APPLICATIONS
Presentation Layer (JSP, HTML)
Logic Layer
(Servlets, JavaBeans etc)
Data Store Layer
(MySQL, SQL Server, File System)
THREE TIER ARCHITECTURE
Applied to web applications and distributed
programming, the three logical tiers usually
correspond to the physical separation between
three types of devices or hosts:
 Browser or GUI Application
 Web Server or Application Server
 Database Server (often an RDBMS or Relational
Database)
THREE TIER ARCHITECTURE
However, inside of the application server, there is a
further division of program code into three logical
tiers. In a classic JSP/Servlet system, these objects
are usually implemented as:
 JSPs or Servlets responsible for creating HTML
user interface pages
 Servlets responsible for business logic
 Servlets, or Java classes responsible for data
access. These objects usually use JDBC to query
the database.
THREE TIER ARCHITECTURE
PROJECT ASSIGNED
 Title of the Project: Online Banking
 Technologies used:
 Front End: JSP (Presentation Layer)
 Back End: Servlets (Application Layer)
 Database: MySQL (Database Layer)
 Tools Used:
 IDE: NetBeans 8.0.2
 Web Server: Apache-Tomcat-8.0.23
 Duration: 2 months
CONCLUSION OF TRAINING
 I learnt the concepts and syntax of the JSP/Servlets
Programming.
 During the course, I also came across several
unknown logics which later be used in other
projects.
Arpita industrial trainingppt

More Related Content

What's hot

Une (simple) présentation de Apache Maven 2
Une (simple) présentation de Apache Maven 2Une (simple) présentation de Apache Maven 2
Une (simple) présentation de Apache Maven 2teejug
 
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...Edureka!
 
What Is Express JS?
What Is Express JS?What Is Express JS?
What Is Express JS?Simplilearn
 
Learn REST in 18 Slides
Learn REST in 18 SlidesLearn REST in 18 Slides
Learn REST in 18 SlidesSuraj Gupta
 
ESTEM_ReactJS_S1.pptx
ESTEM_ReactJS_S1.pptxESTEM_ReactJS_S1.pptx
ESTEM_ReactJS_S1.pptxaissamjadli
 
Introduction à spring boot
Introduction à spring bootIntroduction à spring boot
Introduction à spring bootAntoine Rey
 
CICS basics overview session-1
CICS basics overview session-1CICS basics overview session-1
CICS basics overview session-1Srinimf-Slides
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache TomcatAuwal Amshi
 
Core Java
Core JavaCore Java
Core JavaNA
 
Modern JavaScript Frameworks: Angular, React & Vue.js
Modern JavaScript Frameworks: Angular, React & Vue.jsModern JavaScript Frameworks: Angular, React & Vue.js
Modern JavaScript Frameworks: Angular, React & Vue.jsJonas Bandi
 
Reactive Programming in Java and Spring Framework 5
Reactive Programming in Java and Spring Framework 5Reactive Programming in Java and Spring Framework 5
Reactive Programming in Java and Spring Framework 5Richard Langlois P. Eng.
 
Java 8-streams-collectors-patterns
Java 8-streams-collectors-patternsJava 8-streams-collectors-patterns
Java 8-streams-collectors-patternsJosé Paumard
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework Serhat Can
 
Baja California, Mexico´s Medical Device Manufacturing Center
Baja California, Mexico´s Medical Device Manufacturing CenterBaja California, Mexico´s Medical Device Manufacturing Center
Baja California, Mexico´s Medical Device Manufacturing CenterTijuana Economic Development Corp
 
Reactive programming
Reactive programmingReactive programming
Reactive programmingSUDIP GHOSH
 
alphorm.com - Formation Oracle Database 11g DBA 1 (1Z0-052)
alphorm.com - Formation Oracle Database 11g DBA 1 (1Z0-052)alphorm.com - Formation Oracle Database 11g DBA 1 (1Z0-052)
alphorm.com - Formation Oracle Database 11g DBA 1 (1Z0-052)Alphorm
 

What's hot (20)

Nodejs vatsal shah
Nodejs vatsal shahNodejs vatsal shah
Nodejs vatsal shah
 
Une (simple) présentation de Apache Maven 2
Une (simple) présentation de Apache Maven 2Une (simple) présentation de Apache Maven 2
Une (simple) présentation de Apache Maven 2
 
Support Java Avancé Troisième Partie
Support Java Avancé Troisième PartieSupport Java Avancé Troisième Partie
Support Java Avancé Troisième Partie
 
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
 
What Is Express JS?
What Is Express JS?What Is Express JS?
What Is Express JS?
 
Learn REST in 18 Slides
Learn REST in 18 SlidesLearn REST in 18 Slides
Learn REST in 18 Slides
 
ESTEM_ReactJS_S1.pptx
ESTEM_ReactJS_S1.pptxESTEM_ReactJS_S1.pptx
ESTEM_ReactJS_S1.pptx
 
Introduction à spring boot
Introduction à spring bootIntroduction à spring boot
Introduction à spring boot
 
Map reduce vs spark
Map reduce vs sparkMap reduce vs spark
Map reduce vs spark
 
CICS basics overview session-1
CICS basics overview session-1CICS basics overview session-1
CICS basics overview session-1
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache Tomcat
 
Core Java
Core JavaCore Java
Core Java
 
Modern JavaScript Frameworks: Angular, React & Vue.js
Modern JavaScript Frameworks: Angular, React & Vue.jsModern JavaScript Frameworks: Angular, React & Vue.js
Modern JavaScript Frameworks: Angular, React & Vue.js
 
Java Entreprise Edition
Java Entreprise EditionJava Entreprise Edition
Java Entreprise Edition
 
Reactive Programming in Java and Spring Framework 5
Reactive Programming in Java and Spring Framework 5Reactive Programming in Java and Spring Framework 5
Reactive Programming in Java and Spring Framework 5
 
Java 8-streams-collectors-patterns
Java 8-streams-collectors-patternsJava 8-streams-collectors-patterns
Java 8-streams-collectors-patterns
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
Baja California, Mexico´s Medical Device Manufacturing Center
Baja California, Mexico´s Medical Device Manufacturing CenterBaja California, Mexico´s Medical Device Manufacturing Center
Baja California, Mexico´s Medical Device Manufacturing Center
 
Reactive programming
Reactive programmingReactive programming
Reactive programming
 
alphorm.com - Formation Oracle Database 11g DBA 1 (1Z0-052)
alphorm.com - Formation Oracle Database 11g DBA 1 (1Z0-052)alphorm.com - Formation Oracle Database 11g DBA 1 (1Z0-052)
alphorm.com - Formation Oracle Database 11g DBA 1 (1Z0-052)
 

Viewers also liked

Web Technologies -- Servlets 4 unit slides
Web Technologies -- Servlets   4 unit slidesWeb Technologies -- Servlets   4 unit slides
Web Technologies -- Servlets 4 unit slidesSasidhar Kothuru
 
South america countries
South america countriesSouth america countries
South america countriesnoelcriser
 
Roosevelt wilde België ontbinden en Wallonia oprichten
Roosevelt wilde België ontbinden en Wallonia oprichtenRoosevelt wilde België ontbinden en Wallonia oprichten
Roosevelt wilde België ontbinden en Wallonia oprichtenThierry Debels
 
The Role of Medicare Advantage - JAMA slideshow
The Role of Medicare Advantage - JAMA slideshowThe Role of Medicare Advantage - JAMA slideshow
The Role of Medicare Advantage - JAMA slideshowKFF
 
Standard Model in Particle Physics, Physical Science Lesson PowerPoint
Standard Model in Particle Physics, Physical Science Lesson PowerPointStandard Model in Particle Physics, Physical Science Lesson PowerPoint
Standard Model in Particle Physics, Physical Science Lesson PowerPointwww.sciencepowerpoint.com
 
Memory organisation
Memory organisationMemory organisation
Memory organisationankush_kumar
 

Viewers also liked (12)

Lecture17
Lecture17Lecture17
Lecture17
 
Lecture14
Lecture14Lecture14
Lecture14
 
Web Technologies -- Servlets 4 unit slides
Web Technologies -- Servlets   4 unit slidesWeb Technologies -- Servlets   4 unit slides
Web Technologies -- Servlets 4 unit slides
 
South america countries
South america countriesSouth america countries
South america countries
 
Roosevelt wilde België ontbinden en Wallonia oprichten
Roosevelt wilde België ontbinden en Wallonia oprichtenRoosevelt wilde België ontbinden en Wallonia oprichten
Roosevelt wilde België ontbinden en Wallonia oprichten
 
Diamond as a material
Diamond as a materialDiamond as a material
Diamond as a material
 
The Role of Medicare Advantage - JAMA slideshow
The Role of Medicare Advantage - JAMA slideshowThe Role of Medicare Advantage - JAMA slideshow
The Role of Medicare Advantage - JAMA slideshow
 
Standard Model in Particle Physics, Physical Science Lesson PowerPoint
Standard Model in Particle Physics, Physical Science Lesson PowerPointStandard Model in Particle Physics, Physical Science Lesson PowerPoint
Standard Model in Particle Physics, Physical Science Lesson PowerPoint
 
Presentation food science & technology
Presentation food science & technologyPresentation food science & technology
Presentation food science & technology
 
Parlicles
ParliclesParlicles
Parlicles
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 

Similar to Arpita industrial trainingppt

Similar to Arpita industrial trainingppt (20)

Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
 
JAVA SERVER PAGES
JAVA SERVER PAGESJAVA SERVER PAGES
JAVA SERVER PAGES
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
 
JSP overview
JSP overviewJSP overview
JSP overview
 
Month 2 report
Month 2 reportMonth 2 report
Month 2 report
 
Jsp and Servlets
Jsp and ServletsJsp and Servlets
Jsp and Servlets
 
Jsp and jstl
Jsp and jstlJsp and jstl
Jsp and jstl
 
J2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - ComponentsJ2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - Components
 
Developing Java Web Applications
Developing Java Web ApplicationsDeveloping Java Web Applications
Developing Java Web Applications
 
Unit 4 web technology uptu
Unit 4 web technology uptuUnit 4 web technology uptu
Unit 4 web technology uptu
 
Unit 4 1 web technology uptu
Unit 4 1 web technology uptuUnit 4 1 web technology uptu
Unit 4 1 web technology uptu
 
Jdbc
JdbcJdbc
Jdbc
 
Online grocery store
Online grocery storeOnline grocery store
Online grocery store
 
TY.BSc.IT Java QB U4
TY.BSc.IT Java QB U4TY.BSc.IT Java QB U4
TY.BSc.IT Java QB U4
 
Java server pages
Java server pagesJava server pages
Java server pages
 
Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course
 
Advance Java Practical file
Advance Java Practical fileAdvance Java Practical file
Advance Java Practical file
 
Jsp tutorial
Jsp tutorialJsp tutorial
Jsp tutorial
 
Major project report
Major project reportMajor project report
Major project report
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 

Recently uploaded (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

Arpita industrial trainingppt

  • 1. Dr. M.C. Saxena College of Engineering & Technology, Lucknow An Industrial Training Presentation for the partially fulfillment of Two Months Industrial Training on “Web Development using JSP & Servlets” Completed at “ UPTEC Computer Consultancy Ltd, Lucknow” by: Arpita Srivastava University Roll No. 1316310012 ( 2017 Batch, 7th Sem CSE) On 15th Nov, 2016 At Department of Computer Science and Engineering
  • 2. OUTLINES OF PRESENTATION  Company Background  Industrial Training Objectives  What is Web Development ?  Tools Used for Web Development  Technologies Used for Web Development  Servlets  JSP  JDBC  Three Tier Architecture  Proposed Architecture of Web Applications  Project Assigned  Conclusion of Training
  • 3. COMPANY BACKGROUND  UPTEC Computer Consultancy Ltd. – a premier IT company established in 1993 as a joint venture with UP Electronics Corporation Limited, a public sector enterprise.  UPTEC’s various divisions presently encompass Professional Education, Software development, IT Product & services, Web based services and Content Design and Development.
  • 4. INDUSTRIAL TRAINING OBJECTIVES  The Purpose of Industrial Training is to expose students to the world of work so that they can relate theoretical knowledge with application in Industry.  The Objectives of Industrial Training are:  To develop skills in the application of theory to practical work situations.  To develop skills and techniques directly applicable to their careers.  To enhance the ability to improve students creativity skills and sharing ideas.
  • 5. WHAT IS WEB DEVELOPMENT?  Web development broadly refers to the tasks associated with developing websites for hosting via intranet or Internet.  The Web development hierarchy is as follows:  Client-side coding  Server-side coding  Database technology
  • 6. TOOLS USED FOR WEB DEVELOPMENT  IDE (Integrated Development Environment): Netbeans 8.0 .2  Web Server: Apache-Tomcat-8.0.23  Database: MySQL
  • 7. TECHNOLOGIES USED FOR WEB DEVELOPMENT  JSP (Java Server Pages): Used as a Presentation Layer.  Servlets: Used for Backend Processing.  RDBMS (Relational Database Management System): Used for storing and retrieving data.
  • 8. SERVLETS  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.
  • 9. SERVLETS Creating a Servlet:  By implementing Servlet interface.  By extending GenericServlet class.  By extending HttpServlet class.
  • 10. SERVLETS Life Cycle of Servlets: A servlet life cycle can be defined as the entire process from its creation till the destruction. The following are the paths followed by a servlet:
  • 11. SERVLETS Life Cycle of Servlets:  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.
  • 12. SERVLETS Common Structure of Servlets:  A Servlet extends the HttpServlet abstract class. By doing that, the "servlet container" makes this "servlet" accessible to the web.  By "Servlet Container" are web servers such as Tomcat that are able to understand servlets and JSP syntax.  Basically, a java servlet has the following structure:
  • 13. SERVLETS import java.io.*; import javax.servlet.http.*; import javax.servlet.*; public class hello extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.print("Hello World from GET method "); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.print("Hello World from POST method "); } }
  • 14. JSP A JavaServer Pages component is a type of Java servlet that is designed to fulfill the role of a user interface for a Java web application.
  • 15. JSP Architecture:  JSPs run in two phases  Translation Phase  Execution Phase  In translation phase JSP page is compiled into a servlet.  called JSP Page Implementation class  In execution phase the compliled JSP is processed Send Response Receive Request Load Servlet Compile JSP Servlet Generate JSP Servlet Source Parse JSP JSP Servlet Current? JSP Servlet Loaded? Generate Response Yes No NoYes HTTP Server JSP Container Page Compiler Servlet JSP Page Servlet
  • 16. JSP JSP Scripting Elements:  JSP Scriptlet Tag: <% java source code %>  JSP Expression Tag: <%= statement %>  JSP Declaration Tag: <%! field or method declaration %>
  • 17. JSP  COMMON STRUCTURE OF A JSP PAGE: A JSP page define certain objects that are accessible always, like: request, out, response and session.  For instance, to print something you can do:  <html><title>TEST</title> <body> <%= "Hello World %> </body> </html>  Then save this in a file with JSP extension.
  • 18. JSP JSP DIRECTIVE ELEMENTS:  The JSP directives are messages that tells the web container how to translate a JSP page into the corresponding servlet. There are three types of directives:  page directive  include directive  taglib directive
  • 19. JSP JSP page Directive:  The page directive defines attributes that apply to an entire JSP page.  Syntax of JSP page directive:  <%@ page attribute="value" %> Attributes of JSP page directive:  import  extends  session  pageEncoding  errorPage
  • 20. JSP JSP include directive:  The include directive is used to include the contents of any resource it may be jsp file, html file or text file. Advantage of include directive:  Code Reusability Syntax of include directive:  <%@ include file="resourceName" %>
  • 21. JDBC  Java JDBC(Java Database Connectivity) is a java API to connect and execute query with the database. JDBC API uses jdbc drivers to connect with the database.
  • 22. JDBC 5 steps to connect to the database in JAVA: There are 5 steps to connect any java application with the database in java using JDBC. They are as follows: o Register the driver class o Creating connection o Creating statement o Executing queries o Closing connection
  • 23. JDBC  Register the Driver Class using JDBC driver on MySQL: Class.forName(“com.mysql.jdbc.driver"); o Create the connection object with the MySQL database: Connection con=DriverManager.getConnection( “jdbc:mys ql://localhost:3306/database_name”,”username”,”passw ord”);
  • 24. JDBC  Create the Statement object: Statement stmt=con.createStatement(); o Execute the query: ResultSet rs=stmt.executeQuery("select * from emp"); while(rs.next()){ System.out.println(rs.getInt(1)+" "+rs.getString(2)); }
  • 25. JDBC  Close the connection object: con.close();
  • 26. PROPOSED ARCHITECTURE OF WEB APPLICATIONS Presentation Layer (JSP, HTML) Logic Layer (Servlets, JavaBeans etc) Data Store Layer (MySQL, SQL Server, File System)
  • 27. THREE TIER ARCHITECTURE Applied to web applications and distributed programming, the three logical tiers usually correspond to the physical separation between three types of devices or hosts:  Browser or GUI Application  Web Server or Application Server  Database Server (often an RDBMS or Relational Database)
  • 28. THREE TIER ARCHITECTURE However, inside of the application server, there is a further division of program code into three logical tiers. In a classic JSP/Servlet system, these objects are usually implemented as:  JSPs or Servlets responsible for creating HTML user interface pages  Servlets responsible for business logic  Servlets, or Java classes responsible for data access. These objects usually use JDBC to query the database.
  • 30. PROJECT ASSIGNED  Title of the Project: Online Banking  Technologies used:  Front End: JSP (Presentation Layer)  Back End: Servlets (Application Layer)  Database: MySQL (Database Layer)  Tools Used:  IDE: NetBeans 8.0.2  Web Server: Apache-Tomcat-8.0.23  Duration: 2 months
  • 31. CONCLUSION OF TRAINING  I learnt the concepts and syntax of the JSP/Servlets Programming.  During the course, I also came across several unknown logics which later be used in other projects.