STRUCTURE OF JSP PRESENTED BY: SIDDHARTHA SINGH (120101240) SOMYA SHRIVASTAV (120101244) SONAM JINDAL (120101246)

Slides:



Advertisements
Similar presentations
ASP.NET Intro An introduction to the languages and communication of an ASP.NET system.
Advertisements

Introduction to JavaScript
Java Server Pages (JSP)
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.
JSP1 Java Server Pages (JSP) Introducing JavaServer Pages TM (JSP TM ) JSP scripting elements.
 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
Chapter 51 Scripting With JSP Elements JavaServer Pages By Xue Bai.
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.
DT211/3 Internet Application Development
18-Jun-15 JSP Java Server Pages Reference: Tutorial/Servlet-Tutorial-JSP.html.
CS320 Web and Internet Programming JSP Scripting Elements and Page Directives Chengyu Sun California State University, Los Angeles.
JSP Java Server Pages Reference:
DT228/3 Web Development JSP: Directives and Scripting elements.
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,
Comp2513 Java Server Pages Daniel L. Silver, Ph.D.
1 CS6320 – JSP L. Grewe 2 Java Server Pages Servlets require you to write out entire page delivered with print statements Servlets require you to write.
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)
JSP Architecture  JSP is a simple text file consisting of HTML or XML content along with JSP elements  JSP packages define the interface for the compiled.
Java Servlets and JSP.
Introduction Servlets and JSP Celsina Bignoli
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.
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.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
JSP Java Server Pages Softsmith Infotech.
Introduction to Java Server Pages (JSPs) Robert Thornton.
Chapter 7 Java Server Pages. Objectives Explain how the separation of concerns principle applies to JSP Describe the operation and life-cycle of a JSP.
Introduction to JavaServer Pages (JSP) Slides from Dr. Mark Llewellyn.
Java Server Pages Lecture July Java Server Pages Java Server Pages (JSPs) provide a way to separate the generation of dynamic content (java)
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
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.
Chapter 10 Overview of JSP Technology. Understanding the need for JSP JSP technology enables to mix regular, static HTML with dynamically generated content.
JAVA SERVER PAGES CREATING DYNAMIC WEB PAGES USING JAVA James Faeldon CS 119 Enterprise Systems Programming.
Introduction to JavaServer Pages. 2 JSP and Servlet Limitations of servlet  It’s inaccessible to non-programmers JSP is a complement to servlet  focuses.
Chapter 2 An Overview of Servlet and JSP Technology.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
JSP Fundamentals Elements of a JSP Using Beans with JSP Integrating Servlets and JSP.
Jsp (Java Server Page) Is a server side program.
Java server pages. A JSP file basically contains HTML, but with embedded JSP tags with snippets of Java code inside them. A JSP file basically contains.
JavaScript Syntax, how to use it in a HTML document
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.
Middleware 3/29/2001 Kang, Seungwoo Lee, Jinwon. Description of Topics 1. CGI, Servlets, JSPs 2. Sessions/Cookies 3. Database Connection(JDBC, Connection.
JSP BASICS AND ARCHITECTURE. Goals of JSP Simplify Creation of dynamic pages. Separate Dynamic and Static content.
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
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-
Chapter 3 JSP Overview. The Problem with Servlets processing the request and generating the response are both handled by a single servlet class Java programming.
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 Server Pages (JSP) By Offir Golan. What is JSP?  A technology that allows for the creation of dynamically generated web pages based on HTML, XML,
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.
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.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
JSP java server pages.
JSP (Java Server Page) JSP is server side technology which is used to create dynamic web pages just like Servlet technology. This is mainly used for implementing.
Java Server Pages.
Chengyu Sun California State University, Los Angeles
MSIS 655 Advanced Business Applications Programming
Java Server Pages B.Ramamurthy.
Scripted Page Web Application Development (Java Server Pages)
Presentation transcript:

STRUCTURE OF JSP PRESENTED BY: SIDDHARTHA SINGH ( ) SOMYA SHRIVASTAV ( ) SONAM JINDAL ( )

What is JSP?  JSP stands for Java Server Pages. JSP have.jsp extension.  JSP technology is used to create dynamic web application same like Servlet technology.  It is another web technology given by Sun Microsystem for the development of dynamic web pages on the client browser.  A JSP page consists of Html tags and JSP tags. The jsp pages are easier to maintain than servlet. It provides some additional features such as Expression Language, Custom Tag etc.  A JSP is called as page but not program because a JSP contains totally tags. Every JSP is internally converted into a Servlet by the server container.  A JSP page contains both html tags and JSP tags. Html tags will produce static output and JSP tags will produced dynamic output. Because of JSP tags we called as JSP is dynamic web page

Java Server Page A JSP contains a mix of HTML and Java code where the Java code handles all the page logic and the HTML manages the display. When the JSP container receives the first request for a Java Server Page it is required to convert the JSP into a Java Servlet. This Servlet is then executed and the output of this execution is sent as the response to the initial request. <% java.util.Date dateToday = new java.util.Date(); %> Todays date is Java Code, when executed, assigns the variable dateToday the current system date. HTML Code, the value of dateToday is written to the HTML in the line Todays date is

Directory structure of JSP Because of jsp page contains outside of WEB-INF, JSP is a public file to the web application. You can directly access these JSP pages from client system browser window. When requested the JSP Container converts a JSP is to a Servlet The JSP Container uses the JDK to compile the Servlet The JSP Container executes the compiled Servlet in the JVM

JSP Example Hello word JSP program must be save with the.jsp extension.

How to run jsp program  Deploy jsp code in root directory  Start Server  Visit on browser or give request with url like below

Scripting Element In JSP, java code can be written inside the jsp page using the scriptlet tag. JSP Scripting element are written inside tags. These code inside tags are processed by the JSP engine during translation of the JSP page. Scripting ElementExample Comment Directive Declaration Scriptlet Expression

Scripting Element  JSP Comment  My First JSP Page <% int count = 0; %> Page Count is

Scripting Element  Directive Tag  or

Scripting Element  Declaration Tag  My First JSP Page <%! int count = 0; %> Page Count is:

Scripting Element  Scriptlet Tag  My First JSP Page <% int count = 0; %> Page Count is

Scripting Element  Expression Tag  html> My First JSP Page <% int count = 0; %> Page Count is