JSP and the UML

Modeling of JSP in the UML is somewhat complicated by the fact that a JSP is really a hybrid between a Web page for the client side and some logic that executes on the server side.

JSPs can of course be modeled as a single class in the logical view; however, this means an unclear separation of responsibilities between the client and the server sides and results in some confusion. For example, how do you establish whether an operation will be executed on the client or the server? You also do not know what kind of relationships make sense for such a class and in what context they are meaningful.

Modeling a JSP as a single class also defeats an objective of modeling, namely to clearly identify the architecturally significant pieces ...

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.