SlideShare uma empresa Scribd logo
1 de 11
PRESENTED BY:
MOHD HUSAIN HABEEB
R.NO. 1305010317
MCA 5TH
SEMESTER
Contents
• Introduction.
• JSP Architecture.
• JSP Execution Procedure.
• JSP Life-cycle.
• JSP Vs Servlets.
• Advantages of JSP.
• Disadvantages of JSP.
• References.
Introduction :What is JSP?
• Java Server Pages or as is normally called JSP is a Java based
technology that simplifies the developing of dynamic web
sites.
• It is a technology developed by Sun Microsystems, back in
1999.
• JSP pages are HTML pages with embedded code that allows
to access data from Java code running on the server.
• JSP contains an extension of .jsp
• JSP is used for UI/Front end/display purpose.
JSP Architecture
• Java Server Pages are part of a 3-tier architecture. A
server(generally referred to as application or web server)
supports the Java Server Pages. This server will act as a
mediator between the client browser and a database.
JSP Execution procedure
JSP Life-cycle
JSP VS SERVLETS
JSP ServletS
JSP is a webpage scripting language that
can generate dynamic content.
Servlets are Java programs that are
already compiled which also creates
dynamic web content.
JSP run slower compared to Servlet as it
takes compilation time to convert into
Java Servlets.
Servlets run faster compared to JSP.
It’s easier to code in JSP than in Java
Servlets.
Its little much code to write here.
In MVC, jsp act as a view. In MVC, servlet act as a controller.
JSP are generally preferred when there is
not much processing of data required.
servlets are best for use when there is
more processing and manipulation
involved.
Advantages of JSP
• User need not write HTML and JAVA code separately.
• JSP can be used for both front end and for writing business
logic.
• JSP is dynamic compilation, which means when a JSP is
modified, it need not be compiled and restarted in the web
server. After the modification of JSP, refresh the browser,
changes will be reflected.
• JSP is Efficient: Every request for a JSP is handled by a
simple Java thread.
• JSP is Scalable: Easy integration with other backend services.
• As JSP pages are translated to servlets and compiled, it is
difficult to trace errors occurred in JSP pages.
• JSP pages require double the disk space to hold the JSP page.
• JSP pages require more time when accessed for the first time
as they are to be compiled on the server.
Disadvantages of JSP
References:
• http://www.javabeat.net
• http://www.vnrgroups.com/video-
tutorials/servlets
• https://www.youtube.com/user/edurekaIN
• http://www.withoutbook.com/DifferenceBet
weenSubjects.php?
subId1=2&subId2=16&d=Difference
%20between%20JSP%20and%20Servlets
.

Mais conteúdo relacionado

Mais procurados

Multithreading In Java
Multithreading In JavaMultithreading In Java
Multithreading In Java
parag
 

Mais procurados (20)

Java And Multithreading
Java And MultithreadingJava And Multithreading
Java And Multithreading
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
Java & advanced java
Java & advanced javaJava & advanced java
Java & advanced java
 
Jdbc ppt
Jdbc pptJdbc ppt
Jdbc ppt
 
Servlet and servlet life cycle
Servlet and servlet life cycleServlet and servlet life cycle
Servlet and servlet life cycle
 
Developing Java Web Applications
Developing Java Web ApplicationsDeveloping Java Web Applications
Developing Java Web Applications
 
Spring MVC Framework
Spring MVC FrameworkSpring MVC Framework
Spring MVC Framework
 
Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1
 
Multithreading In Java
Multithreading In JavaMultithreading In Java
Multithreading In Java
 
Introduction to Angularjs
Introduction to AngularjsIntroduction to Angularjs
Introduction to Angularjs
 
java Servlet technology
java Servlet technologyjava Servlet technology
java Servlet technology
 
JDBC – Java Database Connectivity
JDBC – Java Database ConnectivityJDBC – Java Database Connectivity
JDBC – Java Database Connectivity
 
Hibernate architecture
Hibernate architectureHibernate architecture
Hibernate architecture
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Jsp
JspJsp
Jsp
 
Node.js Express Framework
Node.js Express FrameworkNode.js Express Framework
Node.js Express Framework
 
Lab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptLab #2: Introduction to Javascript
Lab #2: Introduction to Javascript
 
Enterprise java unit-2_chapter-1
Enterprise  java unit-2_chapter-1Enterprise  java unit-2_chapter-1
Enterprise java unit-2_chapter-1
 
Spring boot Introduction
Spring boot IntroductionSpring boot Introduction
Spring boot Introduction
 
Enterprise java unit-3_chapter-1-jsp
Enterprise  java unit-3_chapter-1-jspEnterprise  java unit-3_chapter-1-jsp
Enterprise java unit-3_chapter-1-jsp
 

Semelhante a Jsp(java server pages)

Servlets and jsp pages best practices
Servlets and jsp pages best practicesServlets and jsp pages best practices
Servlets and jsp pages best practices
ejjavies
 
Csajsp Chapter10
Csajsp Chapter10Csajsp Chapter10
Csajsp Chapter10
Adil Jafri
 

Semelhante a Jsp(java server pages) (20)

JAVA SERVER PAGE
JAVA SERVER PAGEJAVA SERVER PAGE
JAVA SERVER PAGE
 
Jsp abes new
Jsp abes newJsp abes new
Jsp abes new
 
Jsp basic
Jsp basicJsp basic
Jsp basic
 
Java JSP.pptx
Java JSP.pptxJava JSP.pptx
Java JSP.pptx
 
Client server 01
Client server 01Client server 01
Client server 01
 
Java
JavaJava
Java
 
Servlets and jsp pages best practices
Servlets and jsp pages best practicesServlets and jsp pages best practices
Servlets and jsp pages best practices
 
JSP overview
JSP overviewJSP overview
JSP overview
 
JSP Part 1
JSP Part 1JSP Part 1
JSP Part 1
 
Devjyotippt
DevjyotipptDevjyotippt
Devjyotippt
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
 
Jsp viva questions
Jsp viva questionsJsp viva questions
Jsp viva questions
 
JavaScript, often abbreviated as JS, is a programming language and core techn...
JavaScript, often abbreviated as JS, is a programming language and core techn...JavaScript, often abbreviated as JS, is a programming language and core techn...
JavaScript, often abbreviated as JS, is a programming language and core techn...
 
Project First presentation about introduction to technologies to be used
Project First presentation about introduction to technologies to be usedProject First presentation about introduction to technologies to be used
Project First presentation about introduction to technologies to be used
 
Advance java session 9
Advance java session 9Advance java session 9
Advance java session 9
 
Jsp
JspJsp
Jsp
 
Frameworks in java
Frameworks in javaFrameworks in java
Frameworks in java
 
20jsp
20jsp20jsp
20jsp
 
Java server pages
Java server pagesJava server pages
Java server pages
 
Csajsp Chapter10
Csajsp Chapter10Csajsp Chapter10
Csajsp Chapter10
 

Último

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 

Último (20)

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 

Jsp(java server pages)

  • 1. PRESENTED BY: MOHD HUSAIN HABEEB R.NO. 1305010317 MCA 5TH SEMESTER
  • 2. Contents • Introduction. • JSP Architecture. • JSP Execution Procedure. • JSP Life-cycle. • JSP Vs Servlets. • Advantages of JSP. • Disadvantages of JSP. • References.
  • 3. Introduction :What is JSP? • Java Server Pages or as is normally called JSP is a Java based technology that simplifies the developing of dynamic web sites. • It is a technology developed by Sun Microsystems, back in 1999. • JSP pages are HTML pages with embedded code that allows to access data from Java code running on the server. • JSP contains an extension of .jsp • JSP is used for UI/Front end/display purpose.
  • 4. JSP Architecture • Java Server Pages are part of a 3-tier architecture. A server(generally referred to as application or web server) supports the Java Server Pages. This server will act as a mediator between the client browser and a database.
  • 7. JSP VS SERVLETS JSP ServletS JSP is a webpage scripting language that can generate dynamic content. Servlets are Java programs that are already compiled which also creates dynamic web content. JSP run slower compared to Servlet as it takes compilation time to convert into Java Servlets. Servlets run faster compared to JSP. It’s easier to code in JSP than in Java Servlets. Its little much code to write here. In MVC, jsp act as a view. In MVC, servlet act as a controller. JSP are generally preferred when there is not much processing of data required. servlets are best for use when there is more processing and manipulation involved.
  • 8. Advantages of JSP • User need not write HTML and JAVA code separately. • JSP can be used for both front end and for writing business logic. • JSP is dynamic compilation, which means when a JSP is modified, it need not be compiled and restarted in the web server. After the modification of JSP, refresh the browser, changes will be reflected. • JSP is Efficient: Every request for a JSP is handled by a simple Java thread. • JSP is Scalable: Easy integration with other backend services.
  • 9. • As JSP pages are translated to servlets and compiled, it is difficult to trace errors occurred in JSP pages. • JSP pages require double the disk space to hold the JSP page. • JSP pages require more time when accessed for the first time as they are to be compiled on the server. Disadvantages of JSP
  • 10. References: • http://www.javabeat.net • http://www.vnrgroups.com/video- tutorials/servlets • https://www.youtube.com/user/edurekaIN • http://www.withoutbook.com/DifferenceBet weenSubjects.php? subId1=2&subId2=16&d=Difference %20between%20JSP%20and%20Servlets
  • 11. .