Best Practices for JSPs

There are a number of best practices that can enable your JSP-based applications to be as successful as possible:

Keep in Mind that JSPs Are Just Specialized Servlets

Actually, JSPs are a simplification of the servlet paradigm. However, that does not mean that you should not follow the same best practices noted in Chapter 3, Building Presentation Logic with WebLogic Servlets. By doing so, you can ensure that JSPs you build have the same level of scalability, reliability, and maintainability as the servlets we built in Chapter 3.

Encapsulate Complex Data and Logic in JavaBeans and Custom Tag Libraries

The goal of your JSP design should be to avoid having sensitive code be visible to your Web designers. In other words, you ...

Get J2EE™ Applications and BEA™ WebLogic Server™ 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.