Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
JAVA SERVER PAGE
1. NADAR SARASWATHI COLLEGE
OF ARTS AND SCIENCE
DEPARTMENT OF COMPUTER SCIENCE
JAVA SERVER PAGES
BY
S.SAMEENA FATHIMA
I-MSC(CS)
2. WHAT IS JSP?
• JSP is a server-side programming technology.
• It was developed by Sun Microsystems in 1999.
• It’s the fast way to create web pages to display dynamic
data.
• JSP page contains both dynamic and static data.
Contd...
3. • We can easily create web applications even with less
knowledge in java.
• The extension of JSP page is .jsp or .jspx.
• It was initially developed to replace servlet but now we use
it together using MVC(model-view-controller) pattern.
• A JSP page after compilation generates a servlet and
therefore incorporates all servlet functionalities.
4. What is servlet?
• Servlet is a server-side program and it is executed in a web
server.
• It receives HTTP requests from users and returns HTTP
responses.
• It is written in java and runs on every platform that
supports java.
• And it is currently supported by most of the popular web
servers.
5. Servlet and JSP thus share common features such as
I. Platform independence.
II. Creation of database-driven web applications.
III. Server-side programming capabilities.
However , there are some basic differences between servlets
and JSP and they are:
6. JSP VS Servlet
SERVLET:
Servlets tie up files i.e., a HTML file for static contents and a
java file for dynamic contents to handle both independently.
Due to this , a change made to any file requires recompilation
of the servlet.
7. JAVA SERVER PAGE:
JSP allows java to be embedded directly into an HTML page
by using tags.
The HTML content and the Java content can also be placed
in separate files.
If any changes is made into the HTML content , it will be
automatically compiled and loaded onto the server.