What is JSP

Views:
 
Category: Entertainment
     
 

Presentation Description

No description available.

Comments

Presentation Transcript

What is JSP?:

What is JSP? JavaServe r Pages (JSP) is an exciting new technology that provides powerful and efficient creation of dynamic content. JSP is a presentation layer technology that allows static Web content to be mixed with Java code. JSP allows the use of standard HTML, but adds the power and flexibility of the Java programming language .

History of Web:

History of Web Static Page Dynamic Page With a static Web page, the client requests a Web page from the server and the server responds by sending back the requested file to the client. The client receives an exact replica of the page that exists on the server. Traditional Web pages are static and unchanging. Under normal conditions they will always remain the same. Requests from multiple clients for the same static page Since the earliest days of HTML there has been a need for handling data dynamically.It may have started out as simple as providing a feedback form. Today's Web site requires a lot more than static content and a feedback form. Dynamic data is important to everything on the Web, from online banking to playing games.The definition of dynamic content is Web pages that are created at the time they are requested, changing content based on specified criteria.

Static HTML Document:

Static HTML Document

Dynamic HTML DOCUMENT:

Dynamic HTML DOCUMENT

JAVA SERVER PAGES:

JAVA SERVER PAGES JSP is an extremely powerful choice for Web development. JSP is a technology using server-side scripting that is actually translated into Servlets and compiled before they are run. This gives developers a scripting interface to create powerful Java Servlets.JSP pages provide tags that allow developers to perform most dynamic content operations without writing complex Java code. Advanced developers can add the full power of the Java programming language to perform advanced operations in JSP pages .

TEMPLATE PAGE:

TEMPLATE PAGE SERVER PAGE Clearly, the most effective way to make a page respond dynamically would be to simply modify the static page. Ideally, special sections to the page could be added that would be changed dynamically by the server. In this case pages become more like a page template for the server to process before sending. These are no longer normal Web pages—they are now server pages. On a server page, the client requests a Web page, the server replaces some sections of a template with new data, and sends this newly modified page to the client

A Server Page into HTML Data:

A Server Page into HTML Data

The Power of Java:

The Power of Java Write Once, Run Anywhere The Java API Security and Safety Scalability Extensibility Components

Understanding HTTP:

Understanding HTTP The Basics of HTTP The HTTP Request HTTP is a generic, lightweight protocol that is used for the delivery of HTML and XML. HTTP is the primary protocol used to deliver information across the World Wide Web.HTTP is also a stateless protocol that keeps no association between requests. This means that when the client makes a request to a server, the server sends a response,and the transaction is closed. A second request from the same client is a whole new transaction, unrelated to the first request. The client requests information by sending a special "request message" to the server.This request contains a single line that represents the request itself, and may also contain additional information that describes the client.The first line of the HTTP request is called the request header and contains all of the information required to complete the request