Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.

Slides:



Advertisements
Similar presentations
E-Commerce CMM503 – Lecture 8 Stuart Watt Room C2.
Advertisements

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 11: Advanced Web Technologies.
ASP.NET Intro An introduction to the languages and communication of an ASP.NET system.
Java Script Session1 INTRODUCTION.
Introduction to JavaScript
DT228/3 Web Development WWW and Client server model.
Web documents types 1. 2 Three basic types of web documents Static. A static web document resides in a file that it is associated with a web server. The.
Languages for Dynamic Web Documents
Server-Side vs. Client-Side Scripting Languages
Chapter Concepts Review Markup Languages
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
What is it? –Large Web sites that support commercial use cannot be written by hand What you’re going to learn –How a Web server and a database can be used.
Dynamic Web Pages. Web Programming  All our web pages so far have been static pages. 1. We create a web page 2. We upload it to the web server 3. People.
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
HTML Recall that HTML is static in that it describes how a page is to be displayed, but it doesn’t provide for interaction or animation. A page created.
DT211/3 Internet Development Application Internet Development Application.
Introduction to Web Interface Technology (CSE2030)
Multiple Tiers in Action
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
Apache Tomcat Server Typical html Request/Response cycle
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 Team 8. Overview What is a Java Server? History Architecture Advantages Disadvantages Current Technologies Conclusion.
1 Java Server Pages Can web pages be created specially for each user? What part does Java play?
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
ECA 228 Internet/Intranet Design I Intro to the Web.
Overview of JSP Technology. The need of JSP With servlets, it is easy to – Read form data – Read HTTP request headers – Set HTTP status codes and response.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Lecture Note 3: ASP Syntax.  ASP Syntax  ASP Syntax ASP Code is Browser-Independent. You cannot view the ASP source code by selecting "View source"
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Introduction to Applets CS 3505 Client Side Scripting with applets.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Web Programming Brian Toone 8/27/2014. Outline for today 1.Understanding the architecture of the web 2.Overview of programming languages – Client-side.
JavaScript Syntax, how to use it in a HTML document
Active Server Pages Server-Side Scripting and Client-Side Scripting.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
CITA 310 Section 7 Installing and Testing a Programming Environment (Textbook Chapter 7)
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
STRUCTURE OF JSP PRESENTED BY: SIDDHARTHA SINGH ( ) SOMYA SHRIVASTAV ( ) SONAM JINDAL ( )
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
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.
JAVA SERVER PAGES -by Rubeena Memon Deepti Jain Jaya Thakar Jisha Vettuventra.
ASP Syntax Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
G046 – Lecture 2A Recognising Web-Technologies Mr C Johnston ICT Teacher
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Active Server Pages Computer Science 40S.
Introduction to JavaScript
Introduction to JavaScript
Presentation transcript:

Server Side Scripting Norman White

Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run under the browser) Server side – CGI program Send form information to a program running on a server. Server CGI program sends results back as HTML (or some other browser supported format) Popular CGI languages are perl, python, java, C, C++, … – HTML with embedded code (Server side scripts) PhP, ASP, Cold Fusion, JSP (Java Server Pages), javascript In this case, the embedded code is executed as the web server sends the page out, not when the web browser goes to display the page.

Advantages of Server Side Scripting over CGI No need to have CGI program generate the HTML. HTML automatically sent to the browser Developer only needs to add code for server side processing like data base access etc. Much less code to write, easier to debug, etc. 3 Common environments, PHP, ASP, JSP – PHP uses a C syntax – ASP (Active Server Pages) is visual basic – JSP (Java Server Pages) is Java syntax – Can also do server side javascript

Embedded Scripts (Scriptlets) Scripting statements are enclosed in script tags. – PhP – ASP, JSP ASP uses Visual Basic for Scripting,

ASP Example Static Page

Dynamic Page Page is generated by ASP engine which executes scriptlet statements as they are encountered.

PhP Examples Hello World in PHP <? // Hello world in PHP print("Hello World"); ?>

How do we tell server that we have server side scripting? Name the file.php,.asp,.jsp,.cfm Note, the web server has to be configured to invoke the correct script interpreter. Not all web servers support all scripting languages. – Microsoft supports ASP, can add PhP – Apache supports Php – Tomcat (a java based server) supports JSP.

Who does what where? As a test of your understanding, how could you answer the following question. Assuming the user and the web server are in the same time zone, and have synchronized time, how long (milliseconds) does it take to download a simple web page? Could you create a web page that answers this question using PHP? How hard is it? What do you need to know?

Team question In 5 minutes, sketch an answer to the previous question.