My Oracle Support Banner

How to Write Clean JSP (Doc ID 1037628.1)

Last updated on MAY 04, 2020

Applies to:

Oracle Commerce Platform - Version 2006.3 and later
Information in this document applies to any platform.
***Checked for relevancy 06-21-2013***


This document describes approaches and best practices to using JSP in the Dynamo Application Framework. These tips ensure reusable, maintainable, and clean JSPs. ATG's transition to J2EE page design via JSP over the proprietary JHTML dynamic page compilation was based on the evolving standards in the marketplace. The lessons learned in JHTML page design should not be completely overlooked in favor of the traditional ad hoc JSP programming. JSP can be as clean as JHTML (Dynamo Server Pages) if developers follow the same thought process in page design as they did with JHTML page design.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 1. Separate Visual Design from Programming Logic
 2. Use Nucleus Components
 3. Use Form Handlers or Droplets to Wrap Business Logic
 4. Use an Appropriate Inclusion Mechanism
 Include Directive
 Include Action
 DSP Include
 5. Use Standard HTML Page Design Techniques
 Use Templating
 6. Use Appropriate Exception Handling
 Exception Handling by Components Used on a Page
 Exception Handling by Pipeline Servlets
 Exception Handling in Service Components
 Exception Handling in Schedulable Components
 7. If You Must Use Embedded Java

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.