Summary

JSPs are intended to separate content from presentation. They are conceptually very similar to servlets. JSPs are essentially similar to a server-side scripting technology, the key difference being that JSPs are compiled, whereas scripts are interpreted.

Although a JSP is equivalent to a servlet, a JSP is not intended as a replacement for a servlet. Two development paradigms, generally referred to as Model 1 and Model 2, provide the underpinnings for effective use of servlets and JSPs.

A JSP consists of Java code embedded within a structured document such as HTML or XML. Tags are used to mark up specific pieces of JSP code. Users can also create their own tag libraries in the form of taglib libraries.

In the UML, JSPs and associated technology ...

Get Developing Enterprise Java Applications with J2EE™ and UML 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.