Development Platforms 2110472 Computer Networks Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.

Slides:



Advertisements
Similar presentations
Java Servlet & JSP © copyright 2005 SNU OOPSLA Lab.
Advertisements

Introduction to Servlets Based on: Hall, Brown, Core Servlets and JavaServer Pages.
Introduction to Java 2 Enterprise Edition About myself –Neutrinos, Cancer Research, IT Applications Today’s topic: J2EE –Context –Advantages –Components.
Objectives Ch. D - 1 At the end of this chapter students will: Know the general architecture and purpose of servlets Understand how to create a basic servlet.
CSE 190: Internet E-Commerce Lecture 7. HTML Templates Designed to separate server side logic from HTML presentation Key features –Escapes from HTML into.
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
June 1, 2000 Object Oriented Programming in Java (95-707) Advanced Topics 1 Lecture 10 Object Oriented Programming in Java Advanced Topics Servlets.
J2EE Java2 Enterprise Edition by Damian Borth. Contents Introduction Architectures styles Components Scenarios Roles Processing a HTTP request.
J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)
Introduction to Servlet & JSP
Comp2513 Java Servlet Basics Daniel L. Silver, Ph.D.
Enterprise Programming By J Pearce. Enterprise Software Sales HR Inventory Customer Support Shipping.
Java Server and Servlet CS616 Team 9 Kim Doyle, Susan Kroha, Arunima Palchowdhury, Wei Xu.
Servlets Compiled by Dr. Billy B. L. Lim. Servlets Servlets are Java programs which are invoked to service client requests on a Web server. Servlets extend.
Servlets. Our Project 3-tier application Develop our own multi-threaded server Socket level communication.
8 Server Side Scripting.
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.
Servlet and JSP Programming: An Introduction Spiros Papadimitriou
Gayle J Yaverbaum, PhD Professor of Information Systems Penn State Harrisburg.
Server-side Technologies
Introduction Servlets and JSP Celsina Bignoli
CIS 285 ROBINSON WINTER 2005 CIS 285 Web Application Development with Java CIS 285 Sinclair Community College Instructor: Mary Robinson.
Introduction to JAVA Instructor : Simon Hui & Louis Wong Industrial Centre The Hong Kong Polytechnic University Sep, 2002.
J2EE /.NET Liz Farricker Whitney Mayoras Patrick Bailey.
HTTP client wide area network (Internet) HTTP proxy HTTP server HTTP gateway firewall HTTP tunnel Copyright Springer Verlag Berlin Heidelberg 2004.
Java Omar Rana University of South Asia. Course Overview JAVA  C/C++ and JAVA Comparison  OOP in JAVA  Exception Handling  Streams  Graphics User.
CS 493/693: Distributed Systems Programming V. “Juggy” Jagannathan CSEE, West Virginia University March 21, 2005.
1 Chapter 2 The Web Tier  Web Applications and Web ContainersWeb Applications and Web Containers  Dynamic Content CreationDynamic Content Creation 
Servlets. - Java technology for Common Gateway Interface (CGI) programming. - It is a Java class that dynamically extends the function of a web server.
Objectives Java Servlet Web Components
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
CMPUT 391 – Database Management Systems Department of Computing Science University of Alberta CMPUT 391 Database Management Systems Web based Applications,
Web Server Programming 1. Nuts and Bolts. Premises of Course Provides general introduction, no in-depth training Assumes some HTML knowledge Assumes some.
MDCFUG Is Java in Your Future? Tyler Williams Principal dataTerrace
Java Servlets & Java Server Pages Lecture July 2013.
Java Servlets Lec 27. Creating a Simple Web Application in Tomcat.
Introduction to JavaServer Pages February 23, 2000 Chris Hagner Noblestar Systems Corporation
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
1 CS122B: Projects in Databases and Web Applications Spring 2015 Notes 03: Web-App Architectures Professor Chen Li Department of Computer Science CS122B.
Java Servlet API CGI / HTTP Concepts Java Servlet API.
JavaServer Page by Antonio Ko. Overview ► Introduction ► What is a servlet? ► What can servlets do? ► Servlets Vs JSP ► Syntax ► Samples ► JavaBean ►
Java Servlets and Java Server Pages Norman White Stern School of Business.
JSP Pages. What and Why of JSP? JSP = Java code imbedded in HTML or XML –Static portion of the page is HTML –Dynamic portion is Java Easy way to develop.
Java for networking Module Introduction Data Communications Communication architecture Application.
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.
CS320 Web and Internet Programming Introduction to Java Servlets Chengyu Sun California State University, Los Angeles.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
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.
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.
1 Web Programming with Servlets & JSPs WEB APPLICATIONS – AN OVERVIEW.
CS 562 Advanced Java and Internet Application Computer Warehouse Web Application By Team Alpha :-  Puja Mehta (102163)  Mona Nagpure (102147)
Speaker Name Speaker Title Speaker Title Oracle Corporation Olivier Le Diouris Principal Product Manager Oracle Corporation Building Servlet and JSP Applications.
CS122B: Projects in Databases and Web Applications Spring 2017
CS122B: Projects in Databases and Web Applications Winter 2017
Servlet Fudamentals.
Java Servlets By: Tejashri Udavant..
HTTP Servlet Overview Servlets are modules that extend request/response-oriented servers, such as Java-enabled web servers. For example, a servlet might.
دانشکده کامپیوتر دانشگاه صنعتی شریف
CS122B: Projects in Databases and Web Applications Winter 2018
CS122B: Projects in Databases and Web Applications Spring 2018
J2EE Lecture 1:Servlet and JSP
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
CS122B: Projects in Databases and Web Applications Winter 2019
Java Chapter 7 (Estifanos Tilahun Mihret--Tech with Estif)
Presentation transcript:

Development Platforms Computer Networks Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University

Outline Overview. J2EE Platform. Microsoft.NET Platform. Web Service Platform.

Overview Static vs. dynamic pages. Common Gateway Interface (CGI) External extension (program) for web server. Used mostly to connect to database. Early days C and perl. Counter, guest book, graph generator. Out-of-process model.

Basic CGI Model Problem ? Low performance Must run a new program every time it is being invoked. In-process model – include interpreter inside web server mod_perl. ASP. Plug-in model – separate process (but already started). External AppServer through socket. Web Server Process CGI Program (External) Parameters HTML page

Java Platforms Java-Based Platforms J2SE (Standard Edition) JVM / JRE. Applet and applications. J2ME (Micro Edition) For mobile and wireless equipment. Midlet. J2EE (Enterprise Edition) A set of services. Servlet, JSP, and EJB.

Java Platforms (2)

J2EE Services Java Server Page (JSP). Servlet. Enterprise JavaBean (EJB). Java Connectivity Architecture (JCA). Java Message Service (JMS). Java Management Extension (JMX). Java Naming and Directory Interface (JNDI).

J2EE Architecture

JSP Example

Servlet Example import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorldServlet extends HttpServlet { public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { HTML res.setContentType( "text/html" ); ServletOutputStream out = res.getOutputStream(); out.println( " " ); out.println( " Hello World " ); out.println( " " ); out.println( " Hello World " ); out.println( " Congratulations, your servlet is working! " ); out.println( " " ); }

Microsoft.NET Suite of products Programming Languages C#. ASP.NET. VB.NET. Third parties: NetCOBOL, Visual Perl, Visual Python, etc. Development system. Servers. Common Language Runtime JVM-liked, but supporting multiple languages.

.NET Architecture

Generating Dynamic Pages Model-View-Control Pattern Model – data provider Connect to the database. View – presentation provider Generate HTML page from Model. Control – logic provider Receive a request and control both View and Model.

MVC Pattern Browser Biz Logic (Control) Presentation (View) Web Server Database Logic (Model) Business Logic & PresentationDatabase

Benefits of MVC Pattern Simple to Maintain Separate business, database, and presentation logic. Database access is encapsulated in DB logic. Flexible presentation Template-like system. Simple to support more than one languages.

J2EE in Actions

.NET in Actions

J2EE vs..NET J2EE Multi-Platforms: Unix, Windows, and others. Scalable and high-performance. Complete server-level services: JMS, EJB, JCA, and others..NET Multi-Languages: C#, VB.Net, ASP.Net, and others. Good development tools: Visual Studio.NET. Simple to develop. Built-in supports for XML and Web services. CLR will play a very critical role.

References H. Sheil and M. Monteiro, “Rumble in the jungle: J2EE versus.Net, Part 1”, JavaWorld, June 2002, j2eevsnet_p.html. j2eevsnet_p.html J. Lurie and R. Belanger, “The great debate:.NET vs. J2EE”, Javaworld, March 2002, j2eenet_p.html. j2eenet_p.html jGuru, JavaServer Pages Fundamentals, ro/contents.html. ro/contents.html