(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
Comapring jsp and Sevlet
1. Maharshi Dayanand Saraswati University
Presentation Topic: Comparing Servlet and JSP
Subject : Java Programming
Class: MCA1
Presented by : Shivangi Tak Submitted to: Kapil Sir
3. What is Servlet ?
Servlet is a simple java program that run on server and
capable of handling request and generating dynamic
response .
Servlets work on the server-side.
4.
5. Java Server Page
JSP stands for Java Server Pages.
It is a server-side programming technology .
It is used to creating web applications and dynamic web
content.
JSP is the extension of Servlet Technology but JSP
provide more functionalities than servlet.
7. Java Server Page
Servlet
Servlet is a server side java program module JSP is a web scripting language
Servlet is a pure java code We write JSP code in HTML
We cannot run JavaScript code in client side We can run JavaScript code in client side
Packages are to be imported the top of servlet Packages are to be imported anywhere in jsp code
Fully functioning in java code Fully functioning in JAVA,HTML,JAVASCRIPT,XML
In a servlet you would have to invert
the logic, ie, write java code and print
HTML
The main advantage of JSP is that it's
are easier to code and to read when you
are creating a dynamic HTML front-end.
That's because you write mainly HTML
and in some places embed Java code
Do not provide the facility of writing custom tags JSPs can provide the facility of building the JSP tag
Not easily connected to the MYSQL database. Easily connected to the MYSQL databases.