This essay has been submitted by a student. This is not an example of the work written by our professional essay writers.
The Java language is a third-generation language which means that it supports all the features we expect from a computer application. As the computer technology has advanced there has been a rapid development in the internet technology, both the computer experts and novice understood the power of internet and its requirement in the future. So to make the world ready for the new age of Internet SUN Microsystems developed technology using the existing Java language that will change the way people used to see internet. They named the technology Java Servar Pages (JSP). During the beginning of the internet age everyone in the computing world had two words buzzing in their mouth all the time , they were 'client' and 'server'. The idea of visualizing the internet comprising of a 'client' who will ask for service and a 'server' who would provide the service was the pivot point in the birth of JSP , which was specifically designed to provide a 'client-server' environment to its users. In a more technical way JSP would make development of dynamic web sites possiable . Where contents of the Website will no longer be just boring pages that shows the same information all throught the day , but would now be as the user of the page would like it to be, webpages will show what the users want to see, what the user need to see.
JSP is a high level abstraction of Java Servlets. JSP allows a web programer to develop HTML pages that contains some special JSP tags insdie which Java source codes can be placed. JSP pages are saved using extention .jsp, the jsp pages are kept in a web server, when a clent requests a jsp page , the resolver finds the server where the page resides ,the does some work with the requisite jsp page which we will study shortly and after that the page is fetched using Hyper Text Transfer Protocol(HTTP) into the clients browser from the server.
We may think of a JSP application as a collection of JSP files, HTML files, and other resources. When the user loads the page for the first time, all the files in the application are all translated together, without any dynamic data, into one single Java source file (a .java file) , a name is given to it as specified in the JSP implementation . Then, the .java file is compiled to a .class file. In most cases, the .java file is a Java servlet that complies with the Java Servlet API. This stage is known as translation time.
When the user makes a request to the JSP application i .e. when the user enters something in the form and clicks Submit , any one or multiple of the components of the application , such as a bean, enterprise bean, or servlet handles data the user submits or retrieves data dynamically from a database and returns the data to the .java file where it is recompiled in the .class file. The .class file, being a Java servlet, returns the data to the client Web browser . When the user makes a new request, the component obtains or handles the data again and retranslated it to the .java file, which is compiled again into the .class file. This stage is known as request time.
Now the next question in the readers mind is , everything is happening just fine , but how the data moves from the client to the server and vise-versa. The trick here is using two methods GET and POST. The GET method is traditionally used to get data from the server and the POST method is traditionally used to send data to the server. The GET method attaches the form data also known as Query String at the end of the URL in the form of key-value pairs from the HTML form. The GET method can be used to send relatively less amount of data. The POST method sends data to the server in the body of a HTTP request to the server. Using POST method we can send a huge chunk of data and in a much more secure manner as the data is not visible in the URL of the page to which it is being sent to.
Benefits of JSP
The following are the benefits of the JSP technology :
JSP is simple to use. Once somebody knows Java, he/she can be as good in JSP.
Applications created using JSP are highly portabe, in other words if the user has access to internet , the user can use the application with out any additional platform requirements on his machine. It allows the user to use tha application from any machine in the world.
JSP allows applications to be platform indipendent, i.e. a user can use the same application from a Linux machine,Windows machine or a Solaris machine without any change in the application.
JSP uses the Java platform which means ever Java feature can be used in the application developed by JSP , which is a huge benefit in development of Web based applications.
JSP allows mixing HTML and Java code , which means the web programer can use HTML for making the static parts in a page and use JSP or Java for making the dynamic parts in the same page only.
We arrive at a conclusion that JSP is a programmers paradise when it comes to web programing specially the dynamic web applications. A programer can use the power of Java as well as the art of HTML and CSS to make his/her web page. JSP also benefits novice users by making web based transactions much more user friendly and error free, fail safe and secured. SUN developed JSP to address the perception that the Java programming environment didn't provide developers with enough support for the Web and I would say it indeed succeeded in its goal.