JSP is Java Server Pages is a dynamic web pages technology that is used to generate dynamic web content. JSP technology is based on different content formats such as XML or HTML or any other type of document contents. Sun Microsystems released JSP in 1999. It is similar to that of PHP and ASP (Microsoft Active Server Pages technology). It completely uses Java Programming Language. It was developed and released based on the JSR (Java Specification Request) 245 specification. The latest release version of Java Server Pages is 2.3. The Java Server Pages are compatible with a servlet container, which is of Java EE specification standard and requires application or web servers such as Tomcat or Jetty. Java Server Pages will be converted into Servlets during the runtime of an application. HTML content inside Java is called Servlet, whereas Java content in between HTML is called Java Server Pages technology.
Both are popular choices in the market; let us discuss some of the major difference :
|License||It also adds dynamic web content to the web pages but has limited features.||Adds dynamic functional aspect to the static web pages with a rich user experience.|
|Generality||Will be rendered from the Server-side using servlet technology.||Available in major browsers in client and server-side environment.|
|Maintenance||Maintained by Java Specification group.||Maintained by ECMA TC-39 committee.|
|HTTP/ FTP||Weblogic supports HTTP and FTP as well.||Tomcat supports only HTTP.|
|It supports all browsers easily because it is being rendered by a web server to generate the content.||Supports contents in few browsers depending on the functionalities.|
|Flexibility||It is difficult to maintain larger projects.||It is easier and flexible to develop large and complex projects.|