Introduction to JSP Liu Haibin 12/09/2018.

Slides:



Advertisements
Similar presentations
CF and JSP/Servlets Developed originally by Robi Sen For the CF UnderGround II Seminar, Apr 2001 Edited and enhanced by Charlie Arehart (Robi had an emergency.
Advertisements

 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
JSP: JavaServer Pages Juan Cruz Kevin Hessels Ian Moon.
Web Server Hardware and Software
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
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 Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Java Server Team 8. Overview What is a Java Server? History Architecture Advantages Disadvantages Current Technologies Conclusion.
Introduction to Servlet & JSP
8 Server Side Scripting.
Apache Jakarta Tomcat Suh, Junho. Road Map Tomcat Overview Tomcat Overview History History What is Tomcat? What is Tomcat? Servlet Container.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer.
PHP Web Development, PHP Programming
Java Server Pages (JSP) Presented by: Ananth Prasad & Alex Ivanov May 10, 2001.
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.
INTRODUCTION TO WEB DATABASE PROGRAMMING
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.
CIS 285 ROBINSON WINTER 2005 CIS 285 Web Application Development with Java CIS 285 Sinclair Community College Instructor: Mary Robinson.
Introduction to Internet Programming (Web Based Application)
Introduction to Java Server Pages (JSPs) Robert Thornton.
Wanna know how to get from “Y” to“K” ? Farisai Mabvudza Uma Rudraraju & George Wells Greg Foster & Presented By…Supervised By…
® IBM Software Group © 2007 IBM Corporation J2EE Web Component Introduction
Introduction to PHP and MySQL Kirkwood Center for Continuing Education By Fred McClurg, © Copyright 2015, Fred McClurg, All Rights.
Web Server Programming 3. Server side includes. HTML+ (‘hole’) technologies Uses ‘HTML+”, HTML (or XML) extended with code. Very many different varieties.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
MC365 Application Servers, Servlets, and Java Server Pages (JSP’s): Tomcat.
Active Server Pages Server-Side Scripting and Client-Side Scripting.
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.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
Web Programming Introduction to Web Technology HTML & Dynamic web content.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 13 A & B Programming Languages and the.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Java Programming, 3e Concepts and Techniques Chapter 1 Section 56 – An Introduction to Java.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
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.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
Java Server Pages Can web pages be created specially for each user?
J2EE Platform Overview (Application Architecture)
Introduction Servlets and JSP
Netscape Application Server
Introduction and Principles
Introduction to J2EE Architecture
PHP / MySQL Introduction
Web App vs Mobile App.
Dynamic Web Pages (Flash, JavaScript)
Introduction to Struts
MSIS 655 Advanced Business Applications Programming
Silverlight Technology
Java Servlet Ziad A. Al-Sharif.
Distributed System Using Java 2 Enterprise Edition (J2EE)
Java Server Pages (JSP)
ASP.NET Module Subtitle.
JavaServer Faces: The Fundamentals
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
PHP an introduction.
The need for server pages
Web Application Development Using PHP
Presentation transcript:

Introduction to JSP Liu Haibin 12/09/2018

Overview Introduction A JSP case JSP vs ASP

What is JSP technology? JavaServer Pages (JSP) technology provides a simplified, fast way to create web pages that display dynamically-generated content. The JSP specification, developed through an industry-wide initiative led by Sun Microsystems in June, 1999, defines the interaction between the server and the JSP page, and describes the format and syntax of the page. Sun has made the JSP specification freely available to the development community, with the goal that every Web server and application server will support the JSP interface. JSP pages share the "Write Once, Run Anywhere" characteristics of Java technology. JSP technology is a key component in the Java 2 Platform, Enterprise Edition, Sun's highly scalable architecture for enterprise applications.

What is a JSP page? A JSP page is a page created by the web developer that includes JSP technology-specific and custom tags, in combination with other static (HTML or XML) tags. A JSP page has the extension .jsp or .jspx; this signals to the web server that the JSP engine will process elements on this page. Using the web.xml deployment descriptor, additional extensions can be associated with the JSP engine.

A simple JSP page <%@ page language=“java”%> <%@ page contentType="text/html; charset=ISO-8859-1"%> <html> <head> <title>A simple case</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <% String temp="the time now is:";%> <%=temp%> <%=(new java.util.Date()).toString()%> </body> </html>

Output screen

JSP’s implementation JDK request jsp parser *.jsp *.java *.class response

Overview Introduction A JSP case JSP vs ASP

Flow chart

Overview Introduction A JSP case JSP vs ASP

JSP vs ASP JSP and ASP have some basic concepts in common. 1) They both make use of simple sever-side scripting to provide access to Web server information and functionality. 2) They both have similar styles of delimiting this scripting from a page's content.

Because it uses ActiveX controls for its components, ASP technology is basically restricted to Microsoft Windows-based platforms. Offered primarily as a feature of Microsoft IIS, ASP technology does not work easily on a broader range of Web servers because ActiveX objects are platform specific. JSP technology adheres to the “Write Once, Run Anywhere” philosophy of the Java architecture. Instead of being tied to a single platform or vendor, JSP technology can run on any Web server and is supported by a wide variety of tools from multiple vendors.

JSP technology uses the Java language for scripting, while ASP pages use Microsoft VBScript or JScript. The Java language is a mature, powerful, and scalable programming language that provides many benefits over the Basic-based scripting languages. The Java language makes the developer’s job easier in other ways as well. The Java language also helps in the area of memory management by providing protection against memory leaks and hard-to-find pointer bugs that can slow application deployment. Plus, JSP provides the robust exception handling necessary for real-world applications.

ASP Technology JSP Technology Web Server Microsoft IIS or Personal Web Server Any web server, including Apache, Netscape, IIS, Websphere, and Weblogic Platforms Microsoft Windows (Accessing other platforms requires third-party ASP porting products.) Most popular platforms, including the Solaris™ Operating Environment, Microsoft Windows, Mac OS, Linux, and other UNIX® platform implementations Reusable, Cross-Platform Components No JavaBeans, Enterprise JavaBeans, custom JSP tags Security Against System Crashes Yes Memory Leak Protection Scripting Language VBScript, JavaScript Java Customizable Tags

Five drawbacks Only people who are very familiar with JAVA can use JSP pretty well. JSP program is relatively difficult to debug. Database connection is not very easy. Many codes are needed. It is hard to choose proper servlet engine. There are some other problems during JSP programming. The author of “Java servlet programming” wrote an interesting paper to compare JSP with other substituted tools. Please refer to: http://www.servlets.com/soapbox/problems-jsp.html

Summary I like HTML. + I’m crazy about Java. ≡ I love JSP!

Reference http://java.sun.com/products/jsp/ ---JSP official website http://www.indiawebdevelopers.com/technology/java/jspvsasp.asp ---JSP vs ASP Comparing JavaServer Pages™ Technology and Microsoft Active Server Pages--An Analysis of Functionality http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/ ---A Tutorial on Java Servlets and Java Server Pages

Thank you for your attention!