Professional Documents
Culture Documents
JSP -> Java Server Pages 1. JSP adalah Web dinamis / Dynamic Web Pages. To run JSP we need web server, it can be Tomcat provided by Apache. JSP can be run on any platform. 2. JSP can communicate with database and JSP is executed on web server with help of java compiler. It's saved by extension of .jsp
3. JSP is used for dynamic programming, mean we can communicate with database, insert, update, delete, alter and delete records from database with JSP. JSP code can't view at client or browser. JSP code be embedded with scriptlet <% inside JSP code %> 4. JSP is a part of Java Technology that allows web developers to create web application. Write Once, Run Anywhere: as a part of Java Technology. 5. JSP Scriptling Elements. These are the forms of scriptling elements such as: comment, expression, scriptlet, declaration and expression language. a. Comments <%-- This is a JSP comment --%> b. Expression <?= expression ?> <%= new java.util.Date()%>
c. Scriptlet <% // any java source code here %> d. Declaration <%! int x = 10; %>
7. Intinya architecture JSP itu sama dengan struktur dalam Java. Terdapat kelas-kelas, konstruktor, method dan fungsi. Berbasis OOP dimana setiap fungsi dibuat menjadi objek-objek, sehingga jika terdapat kesalahan/error dalam program dapat dengan mudah diperbaiki dibagian objeknya, dengan tidak menggangu fungsi-fungsi lain.