1 Introduction of JSP | Adv Java JSP programming Tutorial | advance java JSP from basic to advanced



1 Introduction of JSP | Adv Java JSP programming Tutorial | advance java JSP from basic to advanced

1 Introduction of JSP | Adv Java JSP programming Tutorial | advance java JSP from basic to advanced

Introduction JSP | Adv java Advance Java JSP Programming Tutorial |
To develop web application we need client side technologies like HTML, JavaScript etc… Similarly we also need server side technologies to devlop web application like Servlet, JSP, ASP, PHP etc…

– Based on the server side technologies the main stream(Technical Domain) of web application will be decided like Java, .Net, PHP, Python etc…

– Servlet & JSP technologies are required to develop java web application.

– ASP.Net is required to develop .Net based web application.

– List of server side technologies:
———————————-

Servlet from Sun MS(Oracle)
JSP from Sun MS(Oracle)
PHP From Apache
ASP/ASP.Net from Microsoft
SSJS From Netscape
Cold Fusion From Adobe

Q. What is web application?
===========================
Ans: Web application is collection of both client-side & server side web resource programs generating web pages.

– Client side programs comes to browser window from server for execution when they gets requested by Client(Browser window). Ex: HTML programs

– Server side programs execute in server when requested by the client(browser). Ex: Servlet Program, JSP Program, ASP, PHP programs.

– Decide whether web-resource programs is server-side or client side based on the place where it executes but don’t decide based on the place where it resides/stays.

#JSP:
=====
Type : Java Server Pages (Technology)
Version: 2.3 (latest) as on today 2/23/2018
Vendor : Sun Ms (Oracle)
Needs JSP container for execution of JSP Programs.
JSP container is an extension of ServletContainer.

– Every JSP Programs will be converted into servlet program internally by
using JSP page compiler. This process is called page compilation.

Q. Why Sun MS has given JSP Technology, when they already got servlet technology?
====================================================================
Ans:

– When java Servlet Technology was developed by Sun MS around the same time Microsoft came up with ASP(Active Server Pages), ASP was much simpler than Servlet Technology, This was becuase of ASP pages could be created in simple sripting language like tags and VB.Script, However to write the code of servlet needed to know Java

– In the initial days, people have liked the features of servlet but they dont liked programming style of servlet which demands strong Java programming knowledge and does not provide tag/script based programming

– Syntax of servlet were cumbersome,

– Due to this people compromised to use ASP eventhough it has very less feature of servlet & allowing ASP tag based programming.

– To overcome the drawback of servlets instead of revamping the whole servlet Technology, Sun MS decided to come with JSP, which was the layer on the top of Servlet technology,

Ex: To print simple “Hello” message in Servlet we need to write

PrintWriter pw=response.getWriter();
response.setContentType(“text/html”);
pw.println(“Hello”);

Ex: To print simple “Hello” message in JSP we need to write

Hello

– In the initial days programmer/developer have used JSP as compelte alternative to servlet technology, now a days they are using Servlet+JSP technology together to develop Java Web application.
#Introduction #JSP | #Adv #java #Advance #Java #JSP #Programming #Tutorial