Java Omar Rana University of South Asia. Course Overview JAVA  C/C++ and JAVA Comparison  OOP in JAVA  Exception Handling  Streams  Graphics User.

Slides:



Advertisements
Similar presentations
Lecture plan Information retrieval (from week 11)
Advertisements

DT228/3 Web Development WWW and Client server model.
Muhammad Taimoor Khan
Servlets and a little bit of Web Services Russell Beale.
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Definitions, Definitions, Definitions Lead to Understanding.
Introduction to Servlet & JSP
Session-01. What is a Servlet? Servlet can be described in many ways, depending on the context: 1.Servlet is a technology i.e. used to create web application.
Julien Thibault / Phil Brewster / Kristina Doing-Harris
SE-2840 Dr. Mark L. Hornick1 Java Servlet-based web apps Servlet Architecture.
Java Servlets. What Are Servlets? Basically, a java program that runs on the server Basically, a java program that runs on the server Creates dynamic.
Gayle J Yaverbaum, PhD Professor of Information Systems Penn State Harrisburg.
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.
Intro to Servlets Lec 26. Web-Based Enterprise Applications in Java Figure shows a simplified view of one application and its layers.
Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer.
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
UNIT-V The MVC architecture and Struts Framework.
Java Server Pages B.Ramamurthy. Topics for Discussion 8/20/20152 Inheritance and Polymorphism Develop an example for inheritance and polymorphism JSP.
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.
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.
CIS 285 ROBINSON WINTER 2005 CIS 285 Web Application Development with Java CIS 285 Sinclair Community College Instructor: Mary Robinson.
Web Application Programming Carol Wolf Computer Science.
Introduction to Internet Programming (Web Based Application)
Java support for WWW Babak Esfandiari (sources: Qusay Mahmoud, Roger Impey, textbook)
COMP 321 Week 7. Overview HTML and HTTP Basics Dynamic Web Content ServletsMVC Tomcat in Eclipse Demonstration Lab 7-1 Introduction.
® IBM Software Group © 2007 IBM Corporation J2EE Web Component Introduction
Web Server Programming 1. Nuts and Bolts. Premises of Course Provides general introduction, no in-depth training Assumes some HTML knowledge Assumes some.
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
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.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
INTRODUCTION TO WEB APPLICATION Chapter 1. In this chapter, you will learn about:  The evolution of the Internet  The beginning of the World Wide Web,
Java Servlet API CGI / HTTP Concepts Java Servlet API.
Web application architecture1 Based on Jim Conallen: Web Applications with UML.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Java Servlets and Java Server Pages Norman White Stern School of Business.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
1 Java Servlets l Servlets : programs that run within the context of a server, analogous to applets that run within the context of a browser. l Used to.
Web Technologies Lecture 8 Server side web. Client Side vs. Server Side Web Client-side code executes on the end-user's computer, usually within a web.
Middleware 3/29/2001 Kang, Seungwoo Lee, Jinwon. Description of Topics 1. CGI, Servlets, JSPs 2. Sessions/Cookies 3. Database Connection(JDBC, Connection.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, Responds oriented other.
1 Introduction to Servlets. Topics Web Applications and the Java Server. HTTP protocol. Servlets 2.
JS (Java Servlets). Internet evolution [1] The internet Internet started of as a static content dispersal and delivery mechanism, where files residing.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Fall 2000C.Watters1 World Wide Web and E-Commerce Servers & Server Side Processing.
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.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
UMass Lowell Computer Science Java and Distributed Computing Prof. Karen Daniels Fall, 2000 Lecture 21 Java Servlets Wed. 11/22/00 based on material.
Java Servlets and Java Server Pages
How CGI and Java Servlets are Run By David Stein 14 November 2006.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
Bayu Priyambadha, S.Kom. Static content  Web Server delivers contents of a file (html) 1. Browser sends request to Web Server 3. Web Server sends HTML.
JSP / Servlets and Beans
Fall 2000C.Watters1 World Wide Web and E-Commerce Servers & Server Side Processing.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
National College of Science & Information Technology.
Introduction to Servlets
Introduction to Internet Programming (Web Based Application)
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
WWW and HTTP King Fahd University of Petroleum & Minerals
Course Outcomes of Advanced Java Programming AJP (17625, C603)
Introduction Web Environments
Unit 6-Chapter 2 Struts.
PHP / MySQL Introduction
Internet Programming.
Chapter 27 WWW and HTTP.
Introduction to Servlets
Secure Web Programming
J2EE Lecture 1:Servlet and JSP
Presentation transcript:

Java Omar Rana University of South Asia

Course Overview JAVA  C/C++ and JAVA Comparison  OOP in JAVA  Exception Handling  Streams  Graphics User Interface  Event Handling  Game Programming  Graphics  Database Connectivity  Network Programming

J2EE  HTML / CSS  JavaScript  Servlets  JSP  JSF  JAVA Beans  JSP using XML Tags  MVC Architecture  Programming in Layers  XML technologies

Web Application  Java Categories  J2me  J2sdk  J2EE

J2EE Examples

Web Application Model Request Response

Communication model  Web server cannot distinguish if request is made from same browser or not  Its stateless  http doesn’t store any details how request is made

Different Clients  Web browsers  ftp clients

What is web server?  Webserver hosts website and offers protocol http  It takes request and response  It’s a software to provide services to access internet  Web server executes server side programmes

Example  Facebook login  User request something  Client response something  http protocol is used for communication  Example :  Pdf files, doc files

Http  Its a request – response model or oriented protocol  Http request contains the following:  Request Method  URI  Header Fields  Body

Http Response  Http Response contains:  Result code  Header Fields  Body

Http request Example   In Request following are sent:  GET-POST/  URI = home.html  http protocol  Headers : Host : facebook.com User –Agent : Google Chrome Body : Request parameters

HTTP response Example  Status line : tells if its error or ok response  Response headers : Last modified: some date Date: current date Content type: html/text content length: 50

Dynamic Website  Client Sends a request to server  Server side does some computation and response with html page with result generated of computation  Why dynamic pages and not static?

Dynamic Websites   Results depends on our query   Results depends on user login and database

J2EE APPLICATION STRUCTURE

JAVA web application technologies

Servlets  Its a java class  Servlets extend webserver to extend its capability  It allows us to compute on webserver and gives us a response Request Response

Servlets  Any class in java can be written in servlets  We don’t have to write http protocol mechanism  Rich set of libraries of java available in servlets  E.g.  JDBC  Multithreading  E.t.c

Servlet Advantages  Rich set of libraries  Built in multithreading – treats every request as multithread rather than creating new process  Portable across operating systems  Security – jvm verifier

Software's Required  Eclipse / net Beans  Tomcat Server  J2SE  J2EE

Servlet Hello World  To write Servlet we need to extend from  HttpServlet  Import javax.servlet.*;  Import javax.servlet.http.*;