JAVA SERVER
PAGES
Presentation by Anshid-O
I
NTRODUCTI
ON
Java Server Pages, commonly termed as JSP
technology is One of the Java web technologies.
It is a server side technology basically used for
creating web applications.
JSP technology is basically a language widely
used to develop JSP Pages.
This technology creates web content which
consist of both dynamic as well as static
components
01
JSP PAGE
A JSP Page is a text document. It contain both static and
dynamic types of text.
Static Content can be expressed in any text based format,
Say HTML
Dynamic Contents include of Java codes.
JSPtechnology helps to insert java code in HTML Pages by
Making use of special JSP tags, most of which start with
<% and end with %>, known as Scriptlets.
Extension of a JSP Page is .jsp
02
Collect input from Users
through webpage forms
Create webpages
Dynamically
Present records from
Database
03
WORKING
04
SYNTAX
JSP Expressions
<%= expression %>
e.g:- <%= (new java.util.Date()).toLocalString() %>
JSP Declarations
<%! declaration %>
e.g:- <%! int i=0; %>
- <%! Circle c = new Circle(2.0); %>
JSP Comments
<%-- comment %>
e.g:- <%=-- This is JSP comment %>
05
JSP ARCHITECTURE
Read J
SP file Generate java file
Compile java file and
generate class file
Execute class file
JSP ENGINE
WEB SERVER
DATABASE
CLIENT
FEATURES OF JSP
08
EASY CODING
INTERACTIVE WEB PAGES
EASY CONNECTION TO DATABASE
THAN
K
11

Java Server pages (1).pptx

  • 1.
  • 2.
    I NTRODUCTI ON Java Server Pages,commonly termed as JSP technology is One of the Java web technologies. It is a server side technology basically used for creating web applications. JSP technology is basically a language widely used to develop JSP Pages. This technology creates web content which consist of both dynamic as well as static components 01
  • 3.
    JSP PAGE A JSPPage is a text document. It contain both static and dynamic types of text. Static Content can be expressed in any text based format, Say HTML Dynamic Contents include of Java codes. JSPtechnology helps to insert java code in HTML Pages by Making use of special JSP tags, most of which start with <% and end with %>, known as Scriptlets. Extension of a JSP Page is .jsp 02
  • 4.
    Collect input fromUsers through webpage forms Create webpages Dynamically Present records from Database 03 WORKING
  • 5.
    04 SYNTAX JSP Expressions <%= expression%> e.g:- <%= (new java.util.Date()).toLocalString() %> JSP Declarations <%! declaration %> e.g:- <%! int i=0; %> - <%! Circle c = new Circle(2.0); %> JSP Comments <%-- comment %> e.g:- <%=-- This is JSP comment %>
  • 6.
    05 JSP ARCHITECTURE Read J SPfile Generate java file Compile java file and generate class file Execute class file JSP ENGINE WEB SERVER DATABASE CLIENT
  • 7.
    FEATURES OF JSP 08 EASYCODING INTERACTIVE WEB PAGES EASY CONNECTION TO DATABASE
  • 10.