All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.openly.dt.DynamicTag

public abstract interface DynamicTag
a DynamicTag writes or returns a value for use in a JSText.

Think of DynamicTags as objects that make up intelligent blocks of a servlet page. The JSText Objects take care of passing Params objects to dynamic tags appearing on a template. All parameters should be passed to and from DynamicTags through Params objects. DynamicTag objects should be stateless, they should not be required to appear on a template in a certain order or should fail gracefully if they do.

Instead of creating a new DynamicTag for each bit of dynamic data, consider subclassing Params to make a special object that understand a particular set of tag names.

The philosophy behind the com.openly.dt package is to facilitate 100% clean separation of code from data in a servlet application. Templates invoke objects, and the servlet function should be restricted to initializing a Params object selecting the appropriate template

Check out Java and Linking related books at Openly.com!


Method Index

 o getValue(String, Params)
 o writeValue(String, Params, OutputStream)

Methods

 o getValue
 public abstract java.lang.String getValue(java.lang.String param,                                           com.openly.util.Params params)
 o writeValue
 public abstract void writeValue(java.lang.String param,                                 com.openly.util.Params params,                                 java.io.OutputStream outputStream) throws java.io.IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index