Java Server Pages (JSP) Presented by: Ananth Prasad & Alex Ivanov May 10, 2001.

Slides:



Advertisements
Similar presentations
CGI programming. Common Gateway Interface interface between web server and other programs (cgi scripts) information passed as environment variables passed.
Advertisements

ASP.NET Intro An introduction to the languages and communication of an ASP.NET system.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Java Server Pages Jeffrey Jongko. Introduction Java Server Pages (JSP) technology was created by Sun Microsystems and is built on top of Sun’s Java Servlet.
Apache Struts Technology
 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
Java Servlet & JSP © copyright 2005 SNU OOPSLA Lab.
Using JavaServer Pages Harry R. Erwin, PhD CIT304/CSE301.
JSP: JavaServer Pages Juan Cruz Kevin Hessels Ian Moon.
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
LYU9901-Travel Net LYU9901-Travel Net Supervisor: Prof. Michael R. Lyu Students: Ho Chi Ho Malcolm Lau Chi Ho Arthur (Presentation on )
Multiple Tiers in Action
DT228/3 Web Development JSP: Directives and Scripting elements.
04/18/20011 JavaServer Page Presented by: Hongmei Yu 04/18/2001.
Java Server Pages B.Ramamurthy. Java Server Pages Servlets are pure Java programs. They introduce dynamism into web pages by using programmatic content.
Java Server Pages Russell Beale. What are Java Server Pages? Separates content from presentation Good to use when lots of HTML to be presented to user,
Java Server Team 8. Overview What is a Java Server? History Architecture Advantages Disadvantages Current Technologies Conclusion.
Introduction to Servlet & JSP
Comp2513 Java Server Pages Daniel L. Silver, Ph.D.
1 Java Server Pages Can web pages be created specially for each user? What part does Java play?
Three types of scripting elements: 1.Expressions 2.Scriptlets 3.Declarations Scripting elements.
CMPUT 391 – Database Management Systems Department of Computing Science University of Alberta CMPUT 391 Database Management Systems JavaServer Pages (JSP)
JavaServer Pages TM Introduce by
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
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.
UNIT-V The MVC architecture and Struts Framework.
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.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
Java Server Pages CS-422. What are JSPs A logical evolution of java servlets –most servlets dynamically create HTML and integrate it with some computational.
Applets & Servlets.
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.
JDeveloper 10g and JavaServer Faces: High-Performance UIs on the Web Avrom Roy-Faderman Senior Programmer May, 2006.
Introduction to JavaServer Pages (JSP) Slides from Dr. Mark Llewellyn.
Jordan Anastasiade. All rights reserved.
 Embeds Java code  In HTML tags  When used well  Simple way to generate dynamic web-pages  When misused (complex embedded Java)  Terribly messy.
Wanna know how to get from “Y” to“K” ? Farisai Mabvudza Uma Rudraraju & George Wells Greg Foster & Presented By…Supervised By…
JAVA SERVER PAGES. 2 SERVLETS The purpose of a servlet is to create a Web page in response to a client request Servlets are written in Java, with a little.
JAVA SERVER PAGES CREATING DYNAMIC WEB PAGES USING JAVA James Faeldon CS 119 Enterprise Systems Programming.
JSP Fundamentals Elements of a JSP Using Beans with JSP Integrating Servlets and JSP.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
1 Java Server Pages Allows the embedding of Java commands in a page of HTML. Popular for UI heavy solutions. These commands are then interpreted by a JSP.
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.
Basic JSP Celsina Bignoli Problems with Servlets Servlets contain –request processing, –business logic –response generation all lumped.
Core basic Java web server technologies. Tools Eclipse IDE for Java EE Developers (Netbeans also works) nloads/packages/eclipse-
STRUCTURE OF JSP PRESENTED BY: SIDDHARTHA SINGH ( ) SOMYA SHRIVASTAV ( ) SONAM JINDAL ( )
CSI 3125, Preliminaries, page 1 JSP (Java Server Pages)
1 Java Server Pages A Java Server Page is a file consisting of HTML or XML markup into which special tags and code blocks are inserted When the page is.
Chapter 6 Chapter 6 Server Side Programming (JSP) Part 1 1 (IS 203) WebProgramming (IS 203) Web Programming.
JAVA SERVER PAGES -by Rubeena Memon Deepti Jain Jaya Thakar Jisha Vettuventra.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
Java Server Pages. 2 Servlets The purpose of a servlet is to create a Web page in response to a client request Servlets are written in Java, with a little.
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
World Wide Web has been created to share the text document across the world. In static web pages the requesting user has no ability to interact with the.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
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.
Java Server Pages Can web pages be created specially for each user?
Scripted Page Web App Development (Java Server Pages)
Introduction to JSP Liu Haibin 12/09/2018.
PHP / MySQL Introduction
Java Applets.
Java Server Pages (JSP)
Java Server Pages B.Ramamurthy.
JavaServer Faces: The Fundamentals
Presentation transcript:

Java Server Pages (JSP) Presented by: Ananth Prasad & Alex Ivanov May 10, 2001

JSP Definition JSP is a dynamic scripting capability for web pages that allows java as well as a few special tags to be embedded into a web file (HTML/XML, etc). The suffix traditionally ends with.Jsp to indicate to the web server that the file is a JSP file. JSP is a server side technology - can't do any client side validation with it

JSP

A JSP file is a script like an ASP file except that represents a template for a web page. When the page is first requested, the JSP is compiled into a “servlet” form and executed. Afterwards the JSP script exists as a compiled java byte-code (unless it is changed)

Why not just write Servlets?  The focus is on HTML. Java and the JSP extensions assist in making the HTML more functional. Servlets on the other hand allow outputting of HTML but it is a tedious process.  It is easy to make a change and then let the JSP capability of the Web Server you are using deal with compiling it into a Servlet and running it.

JSP

JSP Benefits Easy and Rapid Web Development, Deployment and Maintenance Easy and Rapid Web Development, Deployment and Maintenance Emphasizing Reusable Components Emphasizing Reusable Components Separating Content Generation from Presentation Separating Content Generation from Presentation

JSP Benefits Contd..... Open Development and Widespread Industry Support Open Development and Widespread Industry Support Platform Independence Platform Independence Simplifying Page Development with Tags Simplifying Page Development with Tags

Use of Beans One use of JavaBeans is as a data encapsulator. A property of a JavaBean is simply the data (state) of the bean. Properties are accessible by two methods: the getter and the setter. The value of the property is accessed by the getter method. If the property is writeable, its value is changed by the setter method.

Use of Beans contd..... Loading a Bean - Initializing a Bean - Displaying Dynamic Content -

Java code in your page? Three ways… Using declarations,. With scriptlets,. Expressions between.

A look at simple JSP code I’m HTML code.

Example, “Hello, World” Example: <% String name = null; if (request.getParameter(“name”) == null ) { %> Hello, World <% } else { println.out(“Hello,” + name); } %>

JSP Vs JavaScript JavaScript –Validates on Client Side –Less Secure –Browser Dependent –Unstable –….

JSP Vs. Servlets Similarities Provide identical results to the end user JSP is an additional module to the servlet

JSP Vs Servlets contd..... Differences Servlets: “HTML in Java Code” HTML code inaccessible to Graphics designer But accessible to Programmer JSP: “Java Code Scriplets in HTML” HTML code accessible to Graphic Designer Java code accessible to Programmer

JSP Vs ASP

Useful Links of JSP The current version of JSP is 1.1. It is available from Archives of the JSP mailing list are available at web application servers support JSP JSP Demo website

Conclusion JSP is robust server side dynamic web page generator. Easy to implement Easy to manage Code is portable Free

References Web page development using JSP by Duane K. Fields, Mark A. Kolb Java Server Pages -- by Hans Bergsten Core Servlets and JSP -- by Marty Hall Graphics used on this presentation was obtained from different web sites.

The End