SlideShare a Scribd company logo
INDUSTRIAL TRAINING 
Overview Of J2EE & SERVLET
INDUSTRIAL TRAINING 
Past History 
 Initially two tier architecture (client 
server applications) 
 Client is responsible for data access 
applying business logic and 
presentation of data 
 Only service provided by Server was 
that of database server.
INDUSTRIAL TRAINING Two Tier Application 
Architecture 
Client Server
INDUSTRIAL TRAINING Two Tier Application 
Architecture 
 Drawbacks 
- Easy to deploy but difficult to enchance 
or upgrade. 
- It makes reuse of business and 
presentation logic difficult 
- Not scalable and not suited for internet
INDUSTRIAL TRAINING Java 2 Platform Enterprise 
Edition(J2EE) 
J2EE is an architecture for implementing 
enterprise class applications using Java 
and Internet Technology 
- Solves problems of two tier architecture
INDUSTRIAL TRAINING 
J2EE 
 To develop n tier application 
 It supports the development of a 
variety of application types 
 small client server systems 
 Systems running on Intranets 
 Systems on large scale internet e-commerce 
site
INDUSTRIAL TRAINING 
J2EE Features 
 Component based model 
 Container provided services 
 Highly Scaleable 
 Simplified Architecture 
 Flexible security model
INDUSTRIAL TRAINING 
Java: Foundation for J2EE 
 J2EE is an application of java 
 Write once and deploy the code into 
any platform
INDUSTRIAL TRAINING 
J2EE Components & Services 
 Primary technologies 
- Servlets 
- JavaServer Pages (JSP) 
- Enterprise JavaBeans (EJB) 
 Standard services & supporting technologies 
- Java database connectivity(JDBC) data access API 
- Remote Method Invocations (RMI) 
- Extensible Markup Languages(XML) 
- JavaIDL 
- JavaMail
INDUSTRIAL TRAINING 
J2EE Tiers 
 Client Presentation 
 HTML or Java applets deployed in Browser 
 XML documentations transmitted through 
HTTP 
 Java clients running in Client Java Virtual 
Machine (JVM) 
• Presentation Logic 
 Servlets or JavaServer Pages running in 
web server 
• Application Logic 
 Enterprise JavaBeans running in Server
INDUSTRIAL TRAINING 
J2EE Application Model 
 Browser is able to process HTML and 
applets pages. 
 It forwards requests to the web server, 
which has JSPs and Servlets 
 Servlets and JSPs may access EJB 
server. 
 Java Standalone runs on java client, 
which access EJB server using RMI.
INDUSTRIAL TRAINING 
J2EE Application Model
INDUSTRIAL TRAINING 
Overview of Servlets 
 Are container managed web components 
 Replace Common Gateway Interface(CGI) or 
Active Server Pages (ASP) 
 Generate dynamic response to requests from 
web based clients 
 Synchronize multiple concurrent client 
request 
 Serve as client proxies
INDUSTRIAL TRAINING 
Servlet Operation 
 Server is Java program that runs as 
separate thread inside servlet container. 
 Servlet container is part of web server 
 It interact with web client using 
response request paradigm
INDUSTRIAL TRAINING 
JavaServer Pages (JSP) 
 Text based documents describe how to 
process a request and create a 
response 
 Contains HTML or XML and other JSP 
elements defined by JSP specification. 
 Are Installed on web server 
 are web components that sits on top of 
java servlet mode.
INDUSTRIAL TRAINING 
JSP Advantages 
 Performance 
 Runtime characteristics of servlets 
 Automatic recompilation of modified pages 
 Server side processing 
 Programming 
 Emphasize use of reusable components 
 Write Once , Run Anywhere properties 
 Extensible through custom tag libraries 
 Provides front end access mechanism to 
EJBs
INDUSTRIAL TRAINING 
Parts of JSP Pages 
Directive 
<%@ pageimport=“java.util.”, MVCApp.Cart, MVCApp.CartItem” %> 
Declaration 
<%! Iterator it = null; CartItem ci = null; Vector cpi = null;%> 
Raw HTML 
<html><head><title>Shopping Cart</title></head></html> 
Action 
<jsp:usebean id =“Cart” scope = “session” class = “MVCApp.Cart”/> 
Scriplets 
% 
Cpi = cart.getCartItems ( ); 
it = cpi.iterator(); 
While (it.hasNext()){ci= (Cart Item)it.next(); 
%>
INDUSTRIAL TRAINING 
Parts of JSP Pages 
 Expression 
<td<% = ci.getTitle() %></td> 
<td align =“right”><%=ci.getQuantity()%></td> 
 Implicit Objects 
<% string action = request.getParameter(“action”) ; %>
INDUSTRIAL TRAINING 
Conclusion 
THANK------YOU

More Related Content

What's hot

J2EE Architecture Explained
J2EE  Architecture ExplainedJ2EE  Architecture Explained
J2EE Architecture Explained
Adarsh Kr Sinha
 
Webapplication ppt prepared by krishna ballabh gupta
Webapplication ppt prepared by krishna ballabh guptaWebapplication ppt prepared by krishna ballabh gupta
Webapplication ppt prepared by krishna ballabh gupta
Shivalik college of engineering
 
Java ee introduction
Java ee introductionJava ee introduction
Java ee introduction
Moumie Soulemane
 
Building Enterprise Application with J2EE
Building Enterprise Application with J2EEBuilding Enterprise Application with J2EE
Building Enterprise Application with J2EE
Calance
 
Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)Atit Patumvan
 
J2EE and layered architecture
J2EE and layered architectureJ2EE and layered architecture
J2EE and layered architecture
Suman Behara
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
kamal kotecha
 
Servlets and jsp pages best practices
Servlets and jsp pages best practicesServlets and jsp pages best practices
Servlets and jsp pages best practicesejjavies
 
J2ee
J2eeJ2ee
JEE Course - JEE Overview
JEE Course - JEE  OverviewJEE Course - JEE  Overview
JEE Course - JEE Overview
odedns
 
J2 ee architecture
J2 ee architectureJ2 ee architecture
J2 ee architecture
Krishna Mer
 
Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1
sandeep54552
 
Basic Java Database Connectivity(JDBC)
Basic Java Database Connectivity(JDBC)Basic Java Database Connectivity(JDBC)
Basic Java Database Connectivity(JDBC)
suraj pandey
 
All the Java ADF beginners need to know - part1
All the Java ADF beginners need to know - part1All the Java ADF beginners need to know - part1
All the Java ADF beginners need to know - part1
Markus Eisele
 
Lecture 8 Enterprise Java Beans (EJB)
Lecture 8  Enterprise Java Beans (EJB)Lecture 8  Enterprise Java Beans (EJB)
Lecture 8 Enterprise Java Beans (EJB)
Fahad Golra
 
Java EE EJB Applications
Java EE EJB ApplicationsJava EE EJB Applications
Java EE EJB Applications
DevelopIntelligence
 
Advanced JAVA
Advanced JAVAAdvanced JAVA
Advanced JAVA
Rajvi Vaghasiya
 
Jdbc
JdbcJdbc

What's hot (20)

J2EE Architecture Explained
J2EE  Architecture ExplainedJ2EE  Architecture Explained
J2EE Architecture Explained
 
Webapplication ppt prepared by krishna ballabh gupta
Webapplication ppt prepared by krishna ballabh guptaWebapplication ppt prepared by krishna ballabh gupta
Webapplication ppt prepared by krishna ballabh gupta
 
Chapter2 j2ee
Chapter2 j2eeChapter2 j2ee
Chapter2 j2ee
 
Java ee introduction
Java ee introductionJava ee introduction
Java ee introduction
 
Building Enterprise Application with J2EE
Building Enterprise Application with J2EEBuilding Enterprise Application with J2EE
Building Enterprise Application with J2EE
 
Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)
 
J2EE and layered architecture
J2EE and layered architectureJ2EE and layered architecture
J2EE and layered architecture
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
 
Servlets and jsp pages best practices
Servlets and jsp pages best practicesServlets and jsp pages best practices
Servlets and jsp pages best practices
 
J2ee
J2eeJ2ee
J2ee
 
JEE Course - JEE Overview
JEE Course - JEE  OverviewJEE Course - JEE  Overview
JEE Course - JEE Overview
 
J2 ee architecture
J2 ee architectureJ2 ee architecture
J2 ee architecture
 
Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1
 
Basic Java Database Connectivity(JDBC)
Basic Java Database Connectivity(JDBC)Basic Java Database Connectivity(JDBC)
Basic Java Database Connectivity(JDBC)
 
All the Java ADF beginners need to know - part1
All the Java ADF beginners need to know - part1All the Java ADF beginners need to know - part1
All the Java ADF beginners need to know - part1
 
jdbc document
jdbc documentjdbc document
jdbc document
 
Lecture 8 Enterprise Java Beans (EJB)
Lecture 8  Enterprise Java Beans (EJB)Lecture 8  Enterprise Java Beans (EJB)
Lecture 8 Enterprise Java Beans (EJB)
 
Java EE EJB Applications
Java EE EJB ApplicationsJava EE EJB Applications
Java EE EJB Applications
 
Advanced JAVA
Advanced JAVAAdvanced JAVA
Advanced JAVA
 
Jdbc
JdbcJdbc
Jdbc
 

Similar to J2EE and Servlet

Enterprise application developement
Enterprise application developementEnterprise application developement
Enterprise application developement
Archana Jha
 
Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01
Prashanth Shivakumar
 
Lec2 ecom fall16
Lec2 ecom fall16Lec2 ecom fall16
Lec2 ecom fall16
Zainab Khallouf
 
Introduction to java ee
Introduction to java eeIntroduction to java ee
Introduction to java eeRanjan Kumar
 
Java EE 7 introduction
Java EE 7  introductionJava EE 7  introduction
Java EE 7 introduction
Moumie Soulemane
 
AJ.pptx
AJ.pptxAJ.pptx
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
ADEEBANADEEM
 
Web programming and development - Introduction
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - Introduction
Joel Briza
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
Anup72
 
2.j2 ee overview
2.j2 ee overview2.j2 ee overview
2.j2 ee overview
SDFG5
 
2.J2EE_Overview.ppt
2.J2EE_Overview.ppt2.J2EE_Overview.ppt
2.J2EE_Overview.ppt
EidTahir
 
Summer training java
Summer training javaSummer training java
Summer training java
Arshit Rai
 
Summer training java
Summer training javaSummer training java
Summer training java
Arshit Rai
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDESbputhal
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
SachinSingh217687
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
s4al_com
 
4. J2EE.pptx
4. J2EE.pptx4. J2EE.pptx
4. J2EE.pptx
HariChandruduM
 
Online test management system
Online test management systemOnline test management system
Online test management system
Prateek Agarwak
 
Ejb and jsp
Ejb and jspEjb and jsp
Ejb and jsp
rajshreemuthiah
 

Similar to J2EE and Servlet (20)

Enterprise application developement
Enterprise application developementEnterprise application developement
Enterprise application developement
 
Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01
 
Lec2 ecom fall16
Lec2 ecom fall16Lec2 ecom fall16
Lec2 ecom fall16
 
Introduction to java ee
Introduction to java eeIntroduction to java ee
Introduction to java ee
 
Java EE 7 introduction
Java EE 7  introductionJava EE 7  introduction
Java EE 7 introduction
 
AJ.pptx
AJ.pptxAJ.pptx
AJ.pptx
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
 
Web programming and development - Introduction
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - Introduction
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
 
2.j2 ee overview
2.j2 ee overview2.j2 ee overview
2.j2 ee overview
 
2.J2EE_Overview.ppt
2.J2EE_Overview.ppt2.J2EE_Overview.ppt
2.J2EE_Overview.ppt
 
Summer training java
Summer training javaSummer training java
Summer training java
 
Summer training java
Summer training javaSummer training java
Summer training java
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
 
4. J2EE.pptx
4. J2EE.pptx4. J2EE.pptx
4. J2EE.pptx
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Online test management system
Online test management systemOnline test management system
Online test management system
 
Ejb and jsp
Ejb and jspEjb and jsp
Ejb and jsp
 

More from Rishikesh .

Introduction to un supervised learning
Introduction to un supervised learningIntroduction to un supervised learning
Introduction to un supervised learning
Rishikesh .
 
ACTIVE NOISE CANCELLATION IN A LABORATORY DUCT USING FUZZY LOGIC AND NEURAL ...
ACTIVE NOISE CANCELLATION IN A LABORATORY DUCT  USING FUZZY LOGIC AND NEURAL ...ACTIVE NOISE CANCELLATION IN A LABORATORY DUCT  USING FUZZY LOGIC AND NEURAL ...
ACTIVE NOISE CANCELLATION IN A LABORATORY DUCT USING FUZZY LOGIC AND NEURAL ...
Rishikesh .
 
Home automation and Digital notice board using android app
Home automation and Digital notice board using android appHome automation and Digital notice board using android app
Home automation and Digital notice board using android appRishikesh .
 
Industrial training at NTPC Shaktinagar
Industrial training at NTPC ShaktinagarIndustrial training at NTPC Shaktinagar
Industrial training at NTPC Shaktinagar
Rishikesh .
 
Android application
Android applicationAndroid application
Android application
Rishikesh .
 
Industrial training at NTPC Shaktinagar
Industrial training at NTPC ShaktinagarIndustrial training at NTPC Shaktinagar
Industrial training at NTPC Shaktinagar
Rishikesh .
 
Laboratory Duct Active noise control using Adaptive Filters
Laboratory Duct Active noise control using Adaptive Filters Laboratory Duct Active noise control using Adaptive Filters
Laboratory Duct Active noise control using Adaptive Filters
Rishikesh .
 
Active noise control
Active noise controlActive noise control
Active noise controlRishikesh .
 

More from Rishikesh . (10)

Introduction to un supervised learning
Introduction to un supervised learningIntroduction to un supervised learning
Introduction to un supervised learning
 
project_letter
project_letterproject_letter
project_letter
 
ACTIVE NOISE CANCELLATION IN A LABORATORY DUCT USING FUZZY LOGIC AND NEURAL ...
ACTIVE NOISE CANCELLATION IN A LABORATORY DUCT  USING FUZZY LOGIC AND NEURAL ...ACTIVE NOISE CANCELLATION IN A LABORATORY DUCT  USING FUZZY LOGIC AND NEURAL ...
ACTIVE NOISE CANCELLATION IN A LABORATORY DUCT USING FUZZY LOGIC AND NEURAL ...
 
Home automation and Digital notice board using android app
Home automation and Digital notice board using android appHome automation and Digital notice board using android app
Home automation and Digital notice board using android app
 
Industrial training at NTPC Shaktinagar
Industrial training at NTPC ShaktinagarIndustrial training at NTPC Shaktinagar
Industrial training at NTPC Shaktinagar
 
Android application
Android applicationAndroid application
Android application
 
Industrial training at NTPC Shaktinagar
Industrial training at NTPC ShaktinagarIndustrial training at NTPC Shaktinagar
Industrial training at NTPC Shaktinagar
 
Laboratory Duct Active noise control using Adaptive Filters
Laboratory Duct Active noise control using Adaptive Filters Laboratory Duct Active noise control using Adaptive Filters
Laboratory Duct Active noise control using Adaptive Filters
 
Active noise control
Active noise controlActive noise control
Active noise control
 
Labview
Labview Labview
Labview
 

Recently uploaded

June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 

Recently uploaded (20)

June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 

J2EE and Servlet

  • 1. INDUSTRIAL TRAINING Overview Of J2EE & SERVLET
  • 2. INDUSTRIAL TRAINING Past History  Initially two tier architecture (client server applications)  Client is responsible for data access applying business logic and presentation of data  Only service provided by Server was that of database server.
  • 3. INDUSTRIAL TRAINING Two Tier Application Architecture Client Server
  • 4. INDUSTRIAL TRAINING Two Tier Application Architecture  Drawbacks - Easy to deploy but difficult to enchance or upgrade. - It makes reuse of business and presentation logic difficult - Not scalable and not suited for internet
  • 5. INDUSTRIAL TRAINING Java 2 Platform Enterprise Edition(J2EE) J2EE is an architecture for implementing enterprise class applications using Java and Internet Technology - Solves problems of two tier architecture
  • 6. INDUSTRIAL TRAINING J2EE  To develop n tier application  It supports the development of a variety of application types  small client server systems  Systems running on Intranets  Systems on large scale internet e-commerce site
  • 7. INDUSTRIAL TRAINING J2EE Features  Component based model  Container provided services  Highly Scaleable  Simplified Architecture  Flexible security model
  • 8. INDUSTRIAL TRAINING Java: Foundation for J2EE  J2EE is an application of java  Write once and deploy the code into any platform
  • 9. INDUSTRIAL TRAINING J2EE Components & Services  Primary technologies - Servlets - JavaServer Pages (JSP) - Enterprise JavaBeans (EJB)  Standard services & supporting technologies - Java database connectivity(JDBC) data access API - Remote Method Invocations (RMI) - Extensible Markup Languages(XML) - JavaIDL - JavaMail
  • 10. INDUSTRIAL TRAINING J2EE Tiers  Client Presentation  HTML or Java applets deployed in Browser  XML documentations transmitted through HTTP  Java clients running in Client Java Virtual Machine (JVM) • Presentation Logic  Servlets or JavaServer Pages running in web server • Application Logic  Enterprise JavaBeans running in Server
  • 11. INDUSTRIAL TRAINING J2EE Application Model  Browser is able to process HTML and applets pages.  It forwards requests to the web server, which has JSPs and Servlets  Servlets and JSPs may access EJB server.  Java Standalone runs on java client, which access EJB server using RMI.
  • 12. INDUSTRIAL TRAINING J2EE Application Model
  • 13. INDUSTRIAL TRAINING Overview of Servlets  Are container managed web components  Replace Common Gateway Interface(CGI) or Active Server Pages (ASP)  Generate dynamic response to requests from web based clients  Synchronize multiple concurrent client request  Serve as client proxies
  • 14. INDUSTRIAL TRAINING Servlet Operation  Server is Java program that runs as separate thread inside servlet container.  Servlet container is part of web server  It interact with web client using response request paradigm
  • 15. INDUSTRIAL TRAINING JavaServer Pages (JSP)  Text based documents describe how to process a request and create a response  Contains HTML or XML and other JSP elements defined by JSP specification.  Are Installed on web server  are web components that sits on top of java servlet mode.
  • 16. INDUSTRIAL TRAINING JSP Advantages  Performance  Runtime characteristics of servlets  Automatic recompilation of modified pages  Server side processing  Programming  Emphasize use of reusable components  Write Once , Run Anywhere properties  Extensible through custom tag libraries  Provides front end access mechanism to EJBs
  • 17. INDUSTRIAL TRAINING Parts of JSP Pages Directive <%@ pageimport=“java.util.”, MVCApp.Cart, MVCApp.CartItem” %> Declaration <%! Iterator it = null; CartItem ci = null; Vector cpi = null;%> Raw HTML <html><head><title>Shopping Cart</title></head></html> Action <jsp:usebean id =“Cart” scope = “session” class = “MVCApp.Cart”/> Scriplets % Cpi = cart.getCartItems ( ); it = cpi.iterator(); While (it.hasNext()){ci= (Cart Item)it.next(); %>
  • 18. INDUSTRIAL TRAINING Parts of JSP Pages  Expression <td<% = ci.getTitle() %></td> <td align =“right”><%=ci.getQuantity()%></td>  Implicit Objects <% string action = request.getParameter(“action”) ; %>