14.1. Overview of JSP

JavaServer Pages do not exactly replace servlets. They offer a different direction in Java development on the server. JSPs were compared with ColdFusion in some detail in the last chapter, so we won't dwell on that now. JSPs offer a tag-based, XML-compatible way to create dynamic Web sites. They give you a flexible way to incorporate complete Java classes in the form of JavaBeans and custom actions.

ColdFusion consists of three basic elements: tags, functions, and components (CFCs). JSPs have four: tags (often called “actions”), scriptlets, directives, and beans. While JSP is in a sense a tag-based language, little of the functionality comes from the tags. In ColdFusion, much of what you do is in the tags already defined ...

Get Java™ for ColdFusion® Developers 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.