Web 2.0 with AJAX Students : LASC Ioana KELEMEN Csilla POP Dan Adrian CIOBANU Dumitru Daniel Project leaders : Jean Luc LARBOT Ahmed RHIAT.

Slides:



Advertisements
Similar presentations
Overview Environment for Internet database connectivity
Advertisements

Lecture 11 Server Side Interaction
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Languages for Dynamic Web Documents
1 Chapter 12 Working With Access 2000 on the Internet.
Chapter Concepts Review Markup Languages
Servlets and a little bit of Web Services Russell Beale.
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Introduction to Web Interface Technology (CSE2030)
Apache Tomcat Server Typical html Request/Response cycle
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
Introduction to Web Interface Technology (CSE2030)
Java Server Team 8. Overview What is a Java Server? History Architecture Advantages Disadvantages Current Technologies Conclusion.
Web Applications Basics. Introduction to Web Web features Clent/Server HTTP HyperText Markup Language URL addresses Web server - a computer program that.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
Web 2.0 with AJAX Students : LASC Ioana KELEMEN Csilla POP Dan Adrian CIOBANU Dumitru Daniel Project leader : Ahmed RHIAT.
Apache Jakarta Tomcat Suh, Junho. Road Map Tomcat Overview Tomcat Overview History History What is Tomcat? What is Tomcat? Servlet Container.
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
CS 299 – Web Programming and Design CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Applets & Servlets.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
CIS 285 ROBINSON WINTER 2005 CIS 285 Web Application Development with Java CIS 285 Sinclair Community College Instructor: Mary Robinson.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
Chapter 6 Server-side Programming: Java Servlets
1 Welcome to CSC 301 Web Programming Charles Frank.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
JS (Java Servlets). Internet evolution [1] The internet Internet started of as a static content dispersal and delivery mechanism, where files residing.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Understanding Web Applications Lesson 4. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Web Page Development Understand Web.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, written in Java code, that.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Introduction to the World Wide Web & Internet CIS 101.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
1 LM 6 Database Applications Dr. Lei Li. Learning Objectives Explain three components of a client-server system Describe differences between a 2-tiered.
Submitted by: Moran Mishan. Instructed by: Osnat (Ossi) Mokryn, Dr.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
National College of Science & Information Technology.
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.
WWW and HTTP King Fahd University of Petroleum & Minerals
PHP / MySQL Introduction
MSIS 655 Advanced Business Applications Programming
Architecture of the web
Web Application Development Using PHP
Presentation transcript:

Web 2.0 with AJAX Students : LASC Ioana KELEMEN Csilla POP Dan Adrian CIOBANU Dumitru Daniel Project leaders : Jean Luc LARBOT Ahmed RHIAT

Overview Web 2.0 seems to be like Pink Floyd lyrics: it can mean different things to different people, depending on your state of mind. What is AJAX? –Ajax stands for Asynchronous JavaScript And XML –it mixes well known programming techniques in an uncommon way –enables web developers to build Internet applications with much more appealing user interfaces

We will take a look at : Web servers – Apache and Tomcat »Daniel HTML and CSS Document Object Module »Dan JavaScript and XMLHTTPRequest JSP – MySQL »Csilla Hibernate »Ioana

Apache and Tomcat Web servers –application that translates an URL either into a filename, and then sends that file back over the Internet, or into a program name, and then runs that program and sends its output back. –Criteria for Choosing a Web Server: Fast Multitasking Authentication Error handling Negotiation of style and language Multi-format support Run as a proxy server Secure

Apache and Tomcat Apache –Has more than twice the market share than its next competitor, Microsoft –Freeware –Open source –Highly configurable –Suits sites of all sizes and types –Implements many features in addition to the core functionality –Extensible with third-party modules

Apache and Tomcat Tomcat Java-based servlet container with JSP environment its web server is not as fully featured as many other servers is cross platform running on any operating system that has a Java Runtime Environment its default HTTP port is 8080 Tomcat’s Architecture: –Top-level components –Connectors –Container components –Nested components

HTML and CSS HTML - HyperText Markup Language predominant markup language for the creation of web pages It provides a means to describe the structure of text-based information in a document is written in the form of labels, known as tags can include embedded scripting language code

HTML and CSS Elements are the basic structure for HTML markup, they have two basic properties: –attributes - name-value pairs, separated by "=" –content Delivery of HTML HTTP (HyperText Transfer Protocol )

HTML and CSS What Is CSS? Cascading Style Sheets (CSS) is a language that works with HTML documents to define the way content is presented. Style sheets contain a number of CSS rules There are three types of style: –Browser style –User style sheets –Author style sheets

HTML and CSS Why Use CSS ? –Easy to maintain –Smaller file sizes –Increased accessibility –Different media –More control over typography

DOM Document Object Model (DOM) is a platform - and language-independent standard object model for representing HTML or XML and related formats Is an abstract data structure that represents XML documents as trees of nodes.

DOM The DOM is separated into different parts (Core, XML, and HTML) and different levels (DOM Level 1/2/3): –Core DOM - defines a standard set of objects for any structured document –XML DOM - defines a standard set of objects for XML documents –HTML DOM- defines a standard set of objects for HTML documents

DOM common types of nodes in XML: –Elements –Attributes –Text –Document less common node types: –CDATA –Comment –Processing Instructions –Document fragments –Entities –Entity reference nodes –Notations

DOM Dom tree

From Java to JSP Applets are java programs executed in the user’s browser. A servlet is a Java programming language class that is used to extend the capabilities of servers that host applications access via a request-response programming model. A servlet container is a runtime shell that invokes servlets on behalf of clients; software that runs servlets and manages them through their lifecycle. A JSP page is a text document that contains two types of text: static data, (HTML, SVG, WML, and XML), and JSP elements, which construct dynamic content.

JavaScript and in particular the XMLHTTPRequest object to manipulate the requests and the answers JavaScript Client-side scripts are embedded in web pages and executed by JavaScript interpreter built into browser They add extra functionality to an otherwise static HTML page: - Change the way page elements are displayed - Add animations and other image effects - Open pop-up windows and dialogs - Check the validity of user-entered data

JavaScript and in particular the XMLHTTPRequest object to manipulate the requests and the answers The XHR (XMLHttpRequest) object is the core of the Ajax engine. Enables a page to get data from (with GET method) or post data to (with the POST method) the server as a background request. It does not refresh the browser during this process XMLHttpRequest is supported by all modern browsers. It is made asynchronously in background Any type of document may be returned from the server: ASCII text, HTML, and XML are all popular choices

JavaScript and in particular the XMLHTTPRequest object to manipulate the requests and the answers Database enabled XHR - The server-side language queries the database, based on what was requested - After the data has been received by the server-side language it can be returned to the XHR that originally requested it, and handles by the client-side language - Custom methods are handling specific database interactions

JSP with access in the MySQL database JSP is becoming the new standard for easily developed, easily maintained Web applications Reasons for JSP's soaring popularity: - Making Web pages come alive - Getting data from the user - Easier to program - More power through Java - Connecting to databases - Performance - Separating code and data - Handling cookies

JSP with access in the MySQL database Servlets Are the Java counterpart to non-Java dynamic Web content technologies such as CGI and ASP.NET. Can maintain state across many server transactions by using HTTP cookies, session variables or URL rewriting. The Servlet life cycle: - The Servlet class is loaded by the container during start-up - The container calls the init() method - After initialization, the servlet can service client-requests - The container calls the destroy() method

JSP with access in the MySQL database Connecting to MySQL with JSP The first thing is to make available the java.sql.* class Need to expect and handle java.sql.SQLExceptions An instance of the mm.mysql.Driver class is required to register the DriverManager An instance of JDBC driver needs to be registered with the DriverManager before the call of getConnection() could make the proper connection After creating the connection, statements can be created

HIBERNATE The evolution of programming languages The relational concept for data management The Object/Relational Mapping (ORM)

HIBERNATE

The object-oriented view of a relational database The Hibernate mapping system Example