|
Java Server Pages (JSP) technology allows the combination of regular, static HTML and XML and Java code to produce dynamic, portable, scalable and easily maintained pages. JSP technology acts as a top layer above Java servlets on the servlet engine. In this way, developers can combine HTML code with server-side scripting to create dynamic pages.
JavaServer Pages (JSP) technology provides a simplified, fast way to create web pages that display dynamically-generated content. The JSP specification, developed through an industry-wide initiative led by Sun Microsystems, defines the interaction between the server and the JSP page, and describes the format and syntax of the page.
How does the JavaServer Pages technology work?
JSP pages use XML tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the page. It passes any formatting (HTML or XML) tags directly back to the response page. In this way, JSP pages separate the page logic from its design and display.
JSP technology is part of the Java technology family. JSP pages are compiled into servlets and may call JavaBeans components (beans) or Enterprise JavaBeans components (enterprise beans) to perform processing on the server. As such, JSP technology is a key component in a highly scalable architecture for web-based applications.
JSP pages are not restricted to any specific platform or web server. The JSP specification represents a broad spectrum of industry input.
What Are JSP Scriptlets?
Scriptlets are code fragments that can contain any valid code enclosed between <% and %>. Code here can access any declared variable or bean, and is executed at request time. A typical use of a scriptlet is to wrap a conditional or a loop around a block of HTML.
|