NonStop Servlets for JSP System Administrator's Guide
Overview and Architecture
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
1-4
JavaServer Pages (JSP)
JavaServer Pages (JSP)
JavaServer Pages (JSP), a presentation layer technology that sits on top of the Java
Servlets model, simplifies the creation and management of dynamic HTML. The
technology takes a component-based rather than page-based approach to
development. With page-based design, the web page combines the presentation
material usually created by designers with the business logic usually created by
programmers.
By separating the user interface from content generation, JSP allows page designers
to change the page layout without altering the underlying programmable dynamic
content. Furthermore, the programmable content, or business logic, can be written in
the form of reusable components such as Java Beans. This separation of the page
logic from its display and the support for a reusable component-based design makes
JSP a faster and easier way to build web-based applications.
JavaServer Pages use XML-like tags and scriptlets written in the Java programming
language to encapsulate the logic that generates the content for the page. Additionally,
the application logic can reside in server-based resources, Java Beans, that the page
accesses with these tags and scriptlets. All formatting (HTML or XML) tags are passed
directly back to the response page. The underlying JSP engine (actually a specialized
Servlet itself) transforms JSP tags, scriptlets and HTML into Java code which is
organized as a Java Servlet. This Servlet is precompiled as Java bytecode, thus the
page does not need to be interpreted every time it is requested. The code is
recompiled automatically if the page is changed. A high level view of JSP is shown in
Figure 1-2, JSP Data Flows.
Figure 1-2. JSP Data Flows
VST902.vsd
Client Browser iTP WebServer
JSP Page
Java Servlet
Component
First Time Use
Subsequent Use
Compilation