JSP Best Practices

To optimize scalability, maintainability, and deployability, implement a n-tier architecture (Model-View-Controller), separating presentation, application logic, and data archiving.

When implementing complex logic within your presentation layer, use JavaBeans rather than coding intensive scripting blocks. This model promotes code readability and maintainability by organizing application business logic into Java modules. In general, separate Java from your HTML.

Use appropriate include options. You should use the include directive unless you can justify using the include action. If business logic and other Java code are properly abstracted, use of the include directive should promote Java code reduction within your JSP page. ...

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.