SlideShare a Scribd company logo
1 of 18
URI HANDLERS
1
- SERVER-SIDE TECHNOLOGIES
By : Sayalee Pote
What is a URI?
2
U - Uniform
R - Resource
I - Identifier
“A URI is a string of characters used to identify a name of
a web resource.”
Example:
http://en.wikipedia.org/wiki/Web_engineering
Relationship between URI, URL and URN.
 Uniform Resource Name (URN)
 Uniform Resource Locator (URL)
URL: file:///home/username/books/RomeoAndJuliet.pdf
URN:isbn:0-486-27557-4
3
URI Handlers
4
ACCEPT REQUEST EXECUTION RETURN RESULT
Various URI handlers:
Server-Side Includes (SSI)
CGI/FastCGI
Server-side Scripting
Servlets
Java Server Pages (JSP)
ASP.NET
5
Server-Side Includes (SSI)
 Directives that are placed in HTML pages.
 Evaluated on the server while the pages are being served.
 They let you add dynamically generated content to an existing HTML
page.
 Special file extension : shtml
 Syntax:
<!--#element attribute=value attribute=value ... -->
 Example:
<!--#echo var="DATE_LOCAL" -->
6
SSI supports the following commands:
include
<!--#include virtual="/cgi-bin/counter.pl" -->
//outputs the results of a CGI program
exec
<!--#exec cmd="dir" -->
//gives you a directory listing
7
CGI/FastCGI
8
 CGI stands for Common Gateway Interface.
 Standardized interface between Web servers and application
programs.
 Use of Form tags of HTML.
READ PARAMETERS PROCESS THEM CREATE AN
OUTPUT AS HTML DOCUMENT
Server-side scripting
 Introduces Active Server Pages (ASP)
 All URI handlers mentioned here define a script language.
 Executed by a script interpreter.
 HTML files saved with an extension .asp
 Not limited to one single scripting language.
9
Servlets
 Enhancement of CGI technology in Java
 Invoked by special URLs to process incoming requests.
 Multi-Threading capabilities.
 Offer session tracking.
10
JSP
 Dynamically generated web pages
 Released by Sun microsystems
 Similar to PHP
 Deployment of JSP
11
WHY USE JSP??
vs ASP
vs Pure Servlets
vs JavaScript
vs Static HTML
12
JSP MODEL
13
SAMPLE CODE
 <!DOCTYPE html>
 <html>
 <body>
 <p>Click the button to get a time-based greeting.</p>
 <button onclick="myFunction()">Try it</button>
 <p id="demo"></p>
 <script>
 function myFunction()
 {var x="";
 var time=new Date().getHours();
 if (time<20)
 {x="Good day";
 }
 else
 {x="Good evening";
 }
 document.getElementById("demo").innerHTML=x;
 }
 </script>
 </body>
 </html>
14
OUTPUT
15
ASP.NET
 Static web pages
 Next generation of ASPs.
 ASP.NET is a valuable tool for programmers
 Use of .NET languages is allowed besides script languages
 Visual Studio
 Server side
 Eg: Amazon.com,eBay.com
16
OVERVIEW
Object Oriented Programming
Page gets compiled into an intermediate
language
Intermediate code is converted to machine code
Machine code is eventually run on the processor
17
18
THANK YOU!

More Related Content

What's hot

What's hot (20)

world wide web
world wide webworld wide web
world wide web
 
Lecture 7: Server side programming
Lecture 7: Server side programmingLecture 7: Server side programming
Lecture 7: Server side programming
 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
 
Express js
Express jsExpress js
Express js
 
Front end web development
Front end web developmentFront end web development
Front end web development
 
HTTP Basics
HTTP BasicsHTTP Basics
HTTP Basics
 
Restful web services ppt
Restful web services pptRestful web services ppt
Restful web services ppt
 
How Web Browsers Work
How Web Browsers WorkHow Web Browsers Work
How Web Browsers Work
 
Php Tutorials for Beginners
Php Tutorials for BeginnersPhp Tutorials for Beginners
Php Tutorials for Beginners
 
Front-End Web Development
Front-End Web DevelopmentFront-End Web Development
Front-End Web Development
 
ppt of web designing and development
ppt of web designing and developmentppt of web designing and development
ppt of web designing and development
 
Spring Web Services: SOAP vs. REST
Spring Web Services: SOAP vs. RESTSpring Web Services: SOAP vs. REST
Spring Web Services: SOAP vs. REST
 
Using an FTP client - Client server computing
Using an FTP client -  Client server computingUsing an FTP client -  Client server computing
Using an FTP client - Client server computing
 
Laravel ppt
Laravel pptLaravel ppt
Laravel ppt
 
CS6010 Social Network Analysis Unit II
CS6010 Social Network Analysis   Unit IICS6010 Social Network Analysis   Unit II
CS6010 Social Network Analysis Unit II
 
Web Services
Web ServicesWeb Services
Web Services
 
A Basic Django Introduction
A Basic Django IntroductionA Basic Django Introduction
A Basic Django Introduction
 
MVC in PHP
MVC in PHPMVC in PHP
MVC in PHP
 
Servlets
ServletsServlets
Servlets
 
Http-protocol
Http-protocolHttp-protocol
Http-protocol
 

Similar to URI handlers

An Overview of Node.js
An Overview of Node.jsAn Overview of Node.js
An Overview of Node.jsAyush Mishra
 
Simple REST with Dropwizard
Simple REST with DropwizardSimple REST with Dropwizard
Simple REST with DropwizardAndrei Savu
 
Node.js Workshop - Sela SDP 2015
Node.js Workshop  - Sela SDP 2015Node.js Workshop  - Sela SDP 2015
Node.js Workshop - Sela SDP 2015Nir Noy
 
NodeJS - Creating a Restful API
NodeJS - Creating a Restful APINodeJS - Creating a Restful API
NodeJS - Creating a Restful APIRogério Rodrigues
 
Microservice Websites – Micro CPH
Microservice Websites – Micro CPHMicroservice Websites – Micro CPH
Microservice Websites – Micro CPHGustaf Nilsson Kotte
 
4th Lecture: JSP and such
4th Lecture:  JSP and such4th Lecture:  JSP and such
4th Lecture: JSP and suchManolis Vavalis
 
RESTful API-centric Universe
RESTful API-centric UniverseRESTful API-centric Universe
RESTful API-centric UniverseTihomir Opačić
 
12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocratlinoj
 
Approaches to mobile site development
Approaches to mobile site developmentApproaches to mobile site development
Approaches to mobile site developmentErik Mitchell
 
REST APIs in the context of single-page applications
REST APIs in the context of single-page applicationsREST APIs in the context of single-page applications
REST APIs in the context of single-page applicationsyoranbe
 
Designing RESTful APIs
Designing RESTful APIsDesigning RESTful APIs
Designing RESTful APIsanandology
 
Advanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST APIAdvanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST APIRasan Samarasinghe
 

Similar to URI handlers (20)

An Overview of Node.js
An Overview of Node.jsAn Overview of Node.js
An Overview of Node.js
 
Simple REST with Dropwizard
Simple REST with DropwizardSimple REST with Dropwizard
Simple REST with Dropwizard
 
Node.js Workshop - Sela SDP 2015
Node.js Workshop  - Sela SDP 2015Node.js Workshop  - Sela SDP 2015
Node.js Workshop - Sela SDP 2015
 
Sun Web Server Brief
Sun Web Server BriefSun Web Server Brief
Sun Web Server Brief
 
Asp.net
Asp.netAsp.net
Asp.net
 
NodeJS - Creating a Restful API
NodeJS - Creating a Restful APINodeJS - Creating a Restful API
NodeJS - Creating a Restful API
 
Sun Web Server Brief
Sun Web Server BriefSun Web Server Brief
Sun Web Server Brief
 
5-WebServers.ppt
5-WebServers.ppt5-WebServers.ppt
5-WebServers.ppt
 
Microservice Websites – Micro CPH
Microservice Websites – Micro CPHMicroservice Websites – Micro CPH
Microservice Websites – Micro CPH
 
Advanced JavaScript
Advanced JavaScriptAdvanced JavaScript
Advanced JavaScript
 
Rest with Spring
Rest with SpringRest with Spring
Rest with Spring
 
4th Lecture: JSP and such
4th Lecture:  JSP and such4th Lecture:  JSP and such
4th Lecture: JSP and such
 
RESTful API-centric Universe
RESTful API-centric UniverseRESTful API-centric Universe
RESTful API-centric Universe
 
Jsp
JspJsp
Jsp
 
12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat
 
Spider Course Day 1
Spider Course Day 1Spider Course Day 1
Spider Course Day 1
 
Approaches to mobile site development
Approaches to mobile site developmentApproaches to mobile site development
Approaches to mobile site development
 
REST APIs in the context of single-page applications
REST APIs in the context of single-page applicationsREST APIs in the context of single-page applications
REST APIs in the context of single-page applications
 
Designing RESTful APIs
Designing RESTful APIsDesigning RESTful APIs
Designing RESTful APIs
 
Advanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST APIAdvanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST API
 

Recently uploaded

CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxsomshekarkn64
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - GuideGOPINATHS437943
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 

Recently uploaded (20)

CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptx
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 

URI handlers

  • 1. URI HANDLERS 1 - SERVER-SIDE TECHNOLOGIES By : Sayalee Pote
  • 2. What is a URI? 2 U - Uniform R - Resource I - Identifier “A URI is a string of characters used to identify a name of a web resource.” Example: http://en.wikipedia.org/wiki/Web_engineering
  • 3. Relationship between URI, URL and URN.  Uniform Resource Name (URN)  Uniform Resource Locator (URL) URL: file:///home/username/books/RomeoAndJuliet.pdf URN:isbn:0-486-27557-4 3
  • 4. URI Handlers 4 ACCEPT REQUEST EXECUTION RETURN RESULT
  • 5. Various URI handlers: Server-Side Includes (SSI) CGI/FastCGI Server-side Scripting Servlets Java Server Pages (JSP) ASP.NET 5
  • 6. Server-Side Includes (SSI)  Directives that are placed in HTML pages.  Evaluated on the server while the pages are being served.  They let you add dynamically generated content to an existing HTML page.  Special file extension : shtml  Syntax: <!--#element attribute=value attribute=value ... -->  Example: <!--#echo var="DATE_LOCAL" --> 6
  • 7. SSI supports the following commands: include <!--#include virtual="/cgi-bin/counter.pl" --> //outputs the results of a CGI program exec <!--#exec cmd="dir" --> //gives you a directory listing 7
  • 8. CGI/FastCGI 8  CGI stands for Common Gateway Interface.  Standardized interface between Web servers and application programs.  Use of Form tags of HTML. READ PARAMETERS PROCESS THEM CREATE AN OUTPUT AS HTML DOCUMENT
  • 9. Server-side scripting  Introduces Active Server Pages (ASP)  All URI handlers mentioned here define a script language.  Executed by a script interpreter.  HTML files saved with an extension .asp  Not limited to one single scripting language. 9
  • 10. Servlets  Enhancement of CGI technology in Java  Invoked by special URLs to process incoming requests.  Multi-Threading capabilities.  Offer session tracking. 10
  • 11. JSP  Dynamically generated web pages  Released by Sun microsystems  Similar to PHP  Deployment of JSP 11
  • 12. WHY USE JSP?? vs ASP vs Pure Servlets vs JavaScript vs Static HTML 12
  • 14. SAMPLE CODE  <!DOCTYPE html>  <html>  <body>  <p>Click the button to get a time-based greeting.</p>  <button onclick="myFunction()">Try it</button>  <p id="demo"></p>  <script>  function myFunction()  {var x="";  var time=new Date().getHours();  if (time<20)  {x="Good day";  }  else  {x="Good evening";  }  document.getElementById("demo").innerHTML=x;  }  </script>  </body>  </html> 14
  • 16. ASP.NET  Static web pages  Next generation of ASPs.  ASP.NET is a valuable tool for programmers  Use of .NET languages is allowed besides script languages  Visual Studio  Server side  Eg: Amazon.com,eBay.com 16
  • 17. OVERVIEW Object Oriented Programming Page gets compiled into an intermediate language Intermediate code is converted to machine code Machine code is eventually run on the processor 17