A JSP-Only Solution

JavaServer Pages are also a very solid technology. Because JSPs are an extension of servlets, you can do just about anything with a JSP that you can with a servlet. As we have been discussing throughout this text, one of the JSP's greatest strengths is its capability to separate content from presentation. The main drawback with a JSP-only application model is that, as your application becomes more complicated, so does your scriptlet code. This results in confusing and difficult-to-maintain JSPs. If you plan on letting your HTML programmers maintain your JSPs, which is very common, then they are going to have to have a pretty good understanding of Java. This results in a very unclear definition of the programmer's role. It ...

Get Pure Java Server Pages™ 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.