JSP an acronym of Java Server Pages is the member of the java family. It is the technology that is used to design and maintain the web pages. As the java is platform independent language hence the pages that are designed are platform independent and use java applet.By using JSP the web designers can now develop the dynamic websites.
It has some advantages over the HTML used commonly to design the web pages. The HTML gives a static presentation of the website. The data is written every time if it needs to be updated. For example a popular site of any online retail shop has all the details of the products available under different categories, their prices, and other relevant details regarding the mode of payment and the shipment details. If any category of the product is to be added now then using HTML language the web designer has to now write all the details again. But if the site is maintained using the JSP then only thing required is to make the changes in the maintained data record. After the changes are made and stored the site gets updated automatically.
A simple HTML page can be made dynamic by embedding the java codes. The technology is also used to develop new javabeans. The page developed is converted into the java servelet and then is executed on the server.
The JSP pages are saved as .jsp and the java compiler uses these extensions to generate the servelets which are further processed and finally interpreted and presented in the form of dynamic pages. Thus it is a server side scripting language.
There are other benefits also like the user does not have to be a master in the java language. But what is required is to have a basic understanding of java and the HTML. The web pages are platform independent and dynamic hence can be run on any platform. This means that the presentation is separated from the content thus enabling the different users to view the same site or content on different platforms.
Some terms associated with the technology:
JSP page: text based document. The text is in two forms- static and dynamic static data can be expressed in any language like HTML, XML; the dynamic text is of JSP.
Implicit objects: These are the objects on the site that are created and relate to the page, content, request, session etc.