“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”
JSP is used mainly for presentation only. A JSP can only be HttpServlet, which mean that the only supported protocol in JSP is HTTP. A servlet can support any protocol like HTTP, FTP, SMTP etc.
I)JSP is used to built presentation layer.Servelt is used mainly for business logic.
II)In jsp java code is embedded in html tags, while in servlet html code is embedded in java
III) jsp is compiled and then executed by server, while servlet are manualy compiled by the user
JSP is used mainly for presentation only. A JSP can only be HttpServlet, which mean that the only supported protocol in JSP is HTTP. A servlet can support any protocol like HTTP, FTP, SMTP etc.
I)JSP is used to built presentation layer.Servelt is used mainly for business logic.
II)In jsp java code is embedded in html tags, while in servlet html code is embedded in java
III) jsp is compiled and then executed by server, while servlet are manualy compiled by the user
Leave an Answer/Comment