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.

Slides:



Advertisements
Similar presentations
DT228/3 Web Development WWW and Client server model.
Advertisements

Technology Overview JAVA Servlets CS-611 S. Witherspoon.
An architecture for webb applications, J2EE
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
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.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
Java 2 – Enterprise Edition Kevin J. LaFata April 21, 2003 UM – St. Louis.
INTERNET DATABASE. Internet and E-commerce Internet – a worldwide collection of interconnected computer network Internet – a worldwide collection of interconnected.
Introduction to Web Interface Technology (CSE2030)
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
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?
Java Server and Servlet CS616 Team 9 Kim Doyle, Susan Kroha, Arunima Palchowdhury, Wei Xu.
Web programming for project students Dr Jim Briggs.
Web Applications Basics. Introduction to Web Web features Clent/Server HTTP HyperText Markup Language URL addresses Web server - a computer program that.
Apache Jakarta Tomcat Suh, Junho. Road Map Tomcat Overview Tomcat Overview History History What is Tomcat? What is Tomcat? Servlet Container.
Understanding and Managing WebSphere V5
Web-based Software Development - An introduction.
Web server and web browser It’s a take and give policy in between client and server through HTTP(Hyper Text Transport Protocol) Server takes a request.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Applets & Servlets.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Web Services Mohamed Fahmy Dr. Sherif Aly Hussein.
Chapter 4: Core Web Technologies
Enterprise Java Beans CS-422. Application Servers In the late 1980s and though the mid 1990s a number of corporations (Broadvision, Netscape…) marketed.
Ing. Ignacio Roqueta ARTech GeneXus and J2EE.
Java Omar Rana University of South Asia. Course Overview JAVA  C/C++ and JAVA Comparison  OOP in JAVA  Exception Handling  Streams  Graphics User.
Introduction to Internet Programming (Web Based Application)
11/16/2012ISC329 Isabelle Bichindaritz1 Web Database Application Development.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Functionality of a web server What does the web server do? Let a user request a resource Find the resource Return something to the user The resource can.
第十四章 J2EE 入门 Introduction What is J2EE ?
J2EE Structure & Definitions Catie Welsh CSE 432
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 7: HTTP and CGI Fundamentals of Web Programming.
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
Web Client-Server Server Client Hypertext link TCP port 80.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Http protocol Response-request Clients not limited to web browsers. Anything that can access code implementing the protocol works: –Standalone programs.
MC365 Application Servers, Servlets, and Java Server Pages (JSP’s): Tomcat.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Operating Systems Lesson 12. HTTP vs HTML HTML: hypertext markup language ◦ Definitions of tags that are added to Web documents to control their appearance.
Kemal Baykal Rasim Ismayilov
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, Responds oriented other.
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.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
Java High level programming language ◦ Sun Microsystems ◦ ORACLE acquired Java Development Kit – JDK Java Runtime Environment – JRE Java Virtual Machine.
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.
Java Server Pages Can web pages be created specially for each user?
Web-based Software Development - An introduction
Servlets.
Section 6.3 Server-side Scripting
Server Side Programming
Web Development Web Servers.
Web Programming Developing Web Applications including Servlets, and Web Services using NetBeans 6.5 with GlassFish.V3.
Unit – 5 JAVA Web Services
The J2EE Framework Java Technologies External Application.
Some Common Terms The Internet is a network of computers spanning the globe. It is also called the World Wide Web. World Wide Web It is a collection of.
By Dr. Kodge Bheemashankar G
Web Technology and DBMSs
MSIS 655 Advanced Business Applications Programming
Java Servlet Ziad A. Al-Sharif.
Distributed System Using Java 2 Enterprise Edition (J2EE)
Introduction to Servlets
J2EE Lecture 1:Servlet and JSP
Presentation transcript:

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. 2.Servlet is an API that provides many interfaces and classes including documentations. 3.Servlet is an interface that must be implemented for creating any servlet. 4.Servlet is a web component that is deployed on the server to create dynamic web page.

Continue...

What is web application? A web application is an application accessible from the web. A web application is composed of web components like Servlet, JSP, Filter etc. and other components such as HTML. The web components typically execute in Web Server and respond to HTTP request.

CGI(Common Gateway Interface) CGI technology enables the web server to call an external program and pass HTTP request information to the external program to process the request. For each request, it starts a new process.

Continue...

Disadvantages of CGI 1.If number of clients increases, it takes more time for sending response. 2.For each request, it starts a process and Web server is limited to start processes. 3.It uses platform dependent language e.g. C, C++, Perl.

Advantage of Servlet

Continue...

Advantages of Servlet over CGI Request Web Container Thread Request 1.share a common memory area 2.Lightweight 3.cost of communication between the threads are low

Continue... Better performance: because it creates a thread for each request not process. Portability: because it uses java language. Robust: Servlets are managed by JVM so no need to worry about memory leak, garbage collection etc. Secure: because it uses java language..

Servlet Terminology Request Response

Continue... Server Response Objects Client Request Objects

The basic terminology used in servlet 1.HTTP 2.HTTP Request Types 3.Difference between Get and Post method 4.Container 5.Server and Difference between web server and application server 6.Content Type 7.Introduction of XML 8.Deployment

HTTP (Hyper Text Transfer Protocol)  Http is the protocol that allows web servers and browsers to exchange data over the web.  It is a request response protocol.  Http uses reliable TCP connections by default on TCP port 80.  It is stateless means each request is considered as the new request. In other words, server doesn't recognize the user by default.

Continue...

Http Request Methods Every request has a header that tells the status of the client. There are many request methods. Get and Post requests are mostly used.

Continue...

What is the difference between Get and Post?

Anatomy of Get Request

Anatomy of Post Request

Container It provides runtime environment for JavaEE (j2ee) applications. 1.Life Cycle Management 2.Multithreaded support 3.Object Pooling 4.Security etc.

Continue...

Server It is a running program or software that provides services.

Continue... There are two types of servers: 1.Web Server 2.Application Server

Web Server Web server contains only web or servlet container. It can be used for servlet, jsp, struts, jsf etc. It can't be used for EJB. Example of Web Servers are: Apache Tomcat and Resin.

Application Server Application server contains Web and EJB containers. It can be used for servlet, jsp, struts, jsf, ejb etc. Example of Application Servers are: 1.JBoss Open-source server from JBoss community. 2.Glassfish provided by Sun Microsystem. Now acquired by Oracle. 3.Weblogic provided by Oracle. It more secured. 4.Websphere provided by IBM.

Continue...

Content Type Content Type is also known as MIME (Multipurpose internet Mail Extension) Type. It is a HTTP header that provides the description about what are you sending to the browser.

There are many content types:  text/html  text/plain  application/msword  application/vnd.ms-excel  application/jar  application/pdf  application/octet-stream  application/x-zip  images/jpeg  video/quicktime etc.

Continue...