Monday, March 21, 2011

JSP (Java Server Page) is a technology to control content or appearance of Web pages through the use of servlets, small programs that run on Web servers.

JSP (Java Server Page) is a technology to control content or appearance of Web pages through the use of servlets, small programs that run on Web servers.

Sun Microsystems, makers of Java, refer to JSP technology as the Servlet API (Application Program Interface).

HTML page that contains links to the Java servlet has the suffix. Jsp.

JSP allows us to combine static HTML with dynamic content generated from the Servlet. JSP technology is also part of the J2EE (Java 2 Enterprise Edition). J2EE is a Java platform for enterprise application development with the support of the API (Application Program Interface) a complete and portability and provides the means to create multi-tier applications that separate the presentation layer, application layer and Data Layer.

JSP Architecture

JSP also idolatry man basically HTML with additional JSP tags into the form of Java Code. JSP files have the extension. Jsp not. Htm or html. JSP engine (Java virtual a machine) the process of parsing the file. Jsp then generate the Java servlet source file. Then compile the source files into class files, this is done in the very first file. Jsp is executed. This makes more slowly when. Jsp file was first accessed, then after the servlet source files compiled everything runs faster.

The following illustrates how the phases of the request to jsp
shown on browser pages.
1. Users run the file. Jsp in the browser, then web browsers that request via the Internet / Intranet.
2. JSP files are sent to Web Server
3. Web Server sends the file. Jsp to the JSP servlet engine
4. If the JSP file for the first time you run the parsing process, if not then immediately executed the step to 7.
5. The next stage is to generate the special servlet from. Jsp file. All the necessary HTML converted to println.
6. Servlet code then compiled into Java classes.
7. Servlet then call the init and service methods
8. HTML from the servlet then sent to via the internet or intranet.
9. Furthermore, the HTML displayed in a web browser. PostgreSQL Database JDBC Request Response

JSP Advantages

JSP is easy to learn and allows developers to make Web Sites and applications quickly. JSP runs on Java which is object-oriented programming so that the JSP is in a strong platform for application development.
The main reason why using JSP:
1. Multi Platform
We may change our operating system without having to change kodekode jsp that has been made for example from Linux to Windows or Unix. Similarly, from IIS to Apache or IBM Websphere.
2. Reusable code by using JavaBeans
3. With JSP means we get all the advantages of Java.

JSP compared to ASP

ASP is a technology developed by Microsoft. JSP Advantages are:

1. Dynamic web part is written in Java, not JavaScript or VBScript or other languages, making it more powerful and better at making applications and components can be recovered (Reusable Code)
2. JSP portable on all operating systems and web servers so that no locks on windows NT and IIS only.

No comments:

Post a Comment

 
THANK YOU FOR VISITING