The Mechanics of JavaServer Pages

A JSP begins its life as a simple text file. The JSP author will embed markup language such as HTML or XML, JavaScript or client-side VBScript, and snippets of Java code to provide the dynamic content. Each block of Java code, called a scriptlet, is surrounded by <% and %> tags.

The interface for the compiled JSP must have three methods defined:

jspInit()
jspDestroy()
_jspService(HttpServletRequest request, HttpServletResponse response)

The jspInit() and jspDestroy methods can be defined by the JSP author, while the _jspService method is the compiled version of the JSP page. The creation of the _jspService is the responsibility of the JSP engine.

The jspInit() and jspDestroy() methods are each executed just ...

Get PowerBuilder® 9: Internet and Distributed Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.