Contrast with JavaScript HTML Formsto invoke Java Server Pages Structure of Forms Query strings Java Server Pages Sent From Browser To Serverfor JSP.

Slides:



Advertisements
Similar presentations
Servers- Apache Tomcat Server Server-side scripts- Java Server Pages Java Server Pages - Xue Bai.
Advertisements

DT228/3 Web Development WWW and Client server model.
Chapter 31 Basic Form-Processing Techniques JavaServer Pages By Xue Bai.
Languages for Dynamic Web Documents
DT211/3 Internet Application Development JSP: Processing User input.
HTML Markup language - controls appearance and content of a document Javascripts Various HTML tags.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
JavaScript Forms Form Validation Cookies CGI Programs.
Servlets and a little bit of Web Services Russell Beale.
Introduction to Web Database Processing
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
PHP Scripts HTML Forms Two-tier Software Architecture PHP Tools.
Introduction to Web Interface Technology (CSE2030)
Multiple Tiers in Action
Apache Tomcat Server Typical html Request/Response cycle
Introduction to Web Interface Technology (CSE2030)
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
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.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Agenda Web Development Chapter 7 Review Class Discussion Issues.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Comp2513 Forms and CGI Server Applications Daniel L. Silver, Ph.D.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Mark Dixon Page 1 3 – Web applications: Server-side code (JSP)
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Web Interfaces, Forms & Databases Databases Snyder p HTML Basics Snyder p JavaScript Snyder Chapter 18.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Website Development with PHP and MySQL Saving Data.
Chapter 6 Server-side Programming: Java Servlets
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.
Introduction.  The scripting language most often used for client-side web development.  Influenced by many programming languages, easier for nonprogrammers.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
Web App GUI: JSP Basics & Forms 3680 Enterprise Programming.
Jsp (Java Server Page) Is a server side program.
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
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.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
 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.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
 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 ( )
©SoftMoore ConsultingSlide 1 Overview of Servlets and JavaServer Pages (JSP)
UMass Lowell Computer Science Java and Distributed Computing Prof. Karen Daniels Fall, 2000 Lecture 21 Java Servlets Wed. 11/22/00 based on material.
CSI 3125, Preliminaries, page 1 JSP (Java Server Pages)
Servers- Apache Tomcat Server Server-side scripts- Java Server Pages.
JavaScript and Ajax (Internet Background) Week 1 Web site:
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
JavaScript Invented 1995 Steve, Tony & Sharon. A Scripting Language (A scripting language is a lightweight programming language that supports the writing.
Lesson 11. CGI CGI is the interface between a Web page or browser and a Web server that is running a certain program/script. The CGI (Common Gateway Interface)
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.
Section 6.3 Server-side Scripting
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Section 17.1 Section 17.2 Add an audio file using HTML
Client-Server Model: Requesting a Web Page
Presentation transcript:

Contrast with JavaScript HTML Formsto invoke Java Server Pages Structure of Forms Query strings Java Server Pages Sent From Browser To Serverfor JSP

JSPJava programs run on/executed by server Javascript- executed by browser – gives dynamic effects HTML - used by browser - to define content & layout - At request of client - Results returned to client in HTML page versus:

JavaScript R-R Request HTML page retrieves html page returns page to client client (browser) executes Java script containing JavaScript CLIENT-SIDE SCRIPT server Apache Tomcat Request-Response Protocol

Java Server Page R-R client Requests JSP page server returns HTML + Results browser displays page executes JSP code Compiled first time only Handles extensions like.jsp or.html differently compiles JSP code retrieves page from storage SERVER-SIDE SCRIPT replaces JSP with results

HTML Forms User enters data. Browser sends data To server that sent Form. Form identifies server program that processes the data. name age submit Input fields Triggers transmission of data to server Submit button Form

HTML Form Please enter data HTML for Form: Source: Chapter03/example6a.html Program on server Submits request to server Sends data in query-string Variable names Name: Major:

From: Browser TO: Server ? firstName=aaa&major=zzz WHEREWHOWHAT JSP program - on server - requested by HTML Form Data for JSP program Query string Triggered by Form

Using HTML Formsto invoke Java Server Pages Structure of HTML Forms Structure of Query stringsSent to Server from Browseras JSP data Preview