When to Use JSPs

When should you use JSP pages? JSP pages should be used when interactive Web-based content is desired over static content; that is, when content is predicated on user response rather than pre-scripted static text. This dynamic Web-based model is usually accomplished by implementing an n-tier architecture, such as Model-View-Controller, where presentation, application/business logic, and data archiving are layered. Within this layered approach, JSPs should be implemented as the presentation. The JSPs should implement minimal Java code, while providing only a client portal into the application. User requests are serviced by the Controller layer using servlets or other Java objects (such as JavaBeans, Session EJBs, tag libraries, ...

Get BEA WebLogic Server™ 8.1 Unleashed 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.