Server Side Scripting Perl, Python, Java Servlets  write complete programs in (Perl, Python, Java) to process HTTP requests and generate a complete HTTP.

Slides:



Advertisements
Similar presentations
Chapter 6 Server-side Programming: Java Servlets
Advertisements

E-Commerce CMM503 – Lecture 8 Stuart Watt Room C2.
CS 22: Enhanced Web Site Design - Week 8Slide 1 of 15 Enhanced Web Site Design Stanford University Continuing Studies CS 22 Mark Branom
Lecture 11 Server Side Interaction
Java Script Session1 INTRODUCTION.
Java Server Pages (JSP)
Modern Web Application Frameworks CSE 591 – Security and Vulnerability Analysis Spring 2015 Adam Doupé Arizona State University
Ruby (on Rails) CSE 190M, Spring 2009 Week 3. Web Programming in Ruby Ruby can be used to write dynamic web pages Similar to PHP, chunks of Ruby begins.
Servlets Enterprise Systems Programming. Servlets  Servlets: server-side Java programs that enable dynamic processing of web-based requests  Web-based.
DT228/3 Web Development WWW and Client server model.
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Multiple Tiers in Action
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Python and Web Programming
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
Java Server Pages Russell Beale. What are Java Server Pages? Separates content from presentation Good to use when lots of HTML to be presented to user,
CIS 365 Vandana Janeja Nov 27 th 2001 Connecting Cobol programs to Other Languages- Visual Basic, Java,HTML.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
ITM352 Javascript and Dynamic Web Pages: Client Side Processing.
The PHP Story. PHP Story PHP is a programming language. Incorporate(join) sophisticated business logic. Widely used general purpose scripting language.
Common Gateway Interface
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
August Chapter 1 - Essential PHP spring into PHP 5 by Steven Holzner Slides were developed by Jack Davis College of Information Science and Technology.
The Linux Operating System Lecture 5: Apache Tonga Institute of Higher Education.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Copyright © Curt Hill PhP History and Introduction.
Web Servers1-1 Web Servers Xingquan (Hill) Zhu
Nic Shulver, Intro: Developing Server Applications What is a server? Many types of server – File server – file: networked file.
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
1 In the good old days... Years ago… the WWW was made up of (mostly) static documents. –Each URL corresponded to a single file stored on some hard disk.
CSU - DCE Advanced Perl CGI Operation - Fort Collins, CO Copyright © XTR Systems, LLC Introduction to the Common Gateway Interface (CGI) on the.
Introduction to Applets CS 3505 Client Side Scripting with applets.
Working with scripts. HTTP Was too limited Not dynamic.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Java CGI Lecture notes by Theodoros Anagnostopoulos.
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
November 2003Bent Thomsen - FIT 6-11 IT – som værktøj Bent Thomsen Institut for Datalogi Aalborg Universitet.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Introduction to JavaServer Pages. 2 JSP and Servlet Limitations of servlet  It’s inaccessible to non-programmers JSP is a complement to servlet  focuses.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
Session I Chapter 1 - Introduction to Web Development
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Fall 2004CSI University of Ottawa Introduction to PHP Basic principles and syntax.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
CSU - DEO Introduction to CGI - Fort Collins, CO Copyright © XTR Systems, LLC Introduction to the Common Gateway Interface (CGI) Instructor: Joseph DiVerdi,
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
The HTTP is a standard that all Web browsers and Web servers must speak in order for the Web portion of the Internet to work.
Session 1 Chapter 1 - Introduction to Web Development ITI 133: HTML5 Desktop and Mobile Level I
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
 A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests.
Creating PHP Pages Chapter 5 PHP Structure and Syntax.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
1 PHP Intro PHP Introduction After this lecture, you should be able to: Know the fundamental concepts of Web Scripting Languages in general, PHP in particular.
How CGI and Java Servlets are Run By David Stein 14 November 2006.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
World Wide Web has been created to share the text document across the world. In static web pages the requesting user has no ability to interact with the.
Development of Web Applications - Introduction
Development of Web Applications – Introduction revisited
Chapter 27 WWW and HTTP.
HTML5 Level I Session I Chapter 1 - Introduction to Web Development
مهندسی فناوری اطلاعات ارائه دهنده دکتر سيد امين حسيني
Common Gateway Interface (CGI current version 1.1)
Enabling CGI & PHP With Apache
Architecture of the web
23 PHP.
Presentation transcript:

Server Side Scripting Perl, Python, Java Servlets  write complete programs in (Perl, Python, Java) to process HTTP requests and generate a complete HTTP response, including (X)HTML output SSI, PHP, Java Server Pages  embed a script (PHP, Java) in an (X)HTML page which generates the dynamic content

Server Side Includes (SSI)‏ behaves like the C/C++ pre-processor except for html  textual inclusion  conditional code limited dynamic content generation simple templating system

SSI Configuration requires: mod_mime.c and mod_include.c Enable SSI for the directory  Options +Includes generate correct mime type for SSI files:  AddType text/html.shtml run.shtml files through the SSI engine  AddHandler server-parsed.shtml

SSI Usage name the file with the.shtml enclose the SSI directive inside a XHTML comment:

include this is the main body of the doucment foo.shtml

Limitations of the file attribute interpreted as relative to the current document cannot include../ in the path to refer to files above the current document use the virtual attribute instead: virtual attribute is a relative URI and goes through the same permissions processing as any other request from the client virtual attribute can identify a CGI script

echo The current time is: This page was last modified on: foo.shtml

echo variables DATE_GMT, DATE_LOCAL – current time in Greenwich Mean Time and local formats DOCUMENT_NAME – filename requested by client DOCUMENT_URI – URI path requested by the client LAST_MODIFIED – last modification time of file requested by client any other CGI environment variable

Conditional Code BrowserMatchNoCase macintosh Mac BrowserMatchNoCase MSIE InternetExplorer Bummer! WooHoo! httpd.conf fancy.shtml