|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
An abstract encapsulation of a page template. Currently, our implementation uses the Freemarker library.
| Method Summary | |
void |
expose(java.lang.String key,
boolean b)
Expose internal data, publishing it to make it available to a Freemarker Template. |
void |
expose(java.lang.String key,
java.lang.Object item)
Expose internal data, publishing it to make it available to the page template. |
void |
exposeResourceBundle(java.lang.String lookupName)
expose an instance of java.util.ResourceBundle as a template hash variable |
void |
outputPage(javax.servlet.http.HttpServletResponse response,
boolean isStatic)
Prepare the cooked output, filling in the parameters with data values, and send it to the end user via the servlet's response stream. |
| Method Detail |
public void outputPage(javax.servlet.http.HttpServletResponse response,
boolean isStatic)
throws java.io.IOException
These should be supported:
response - handle to where the output should go.java.io.IOException -
public void expose(java.lang.String key,
java.lang.Object item)
key - name of the field in the templateitem - source of the data to populate the template
public void expose(java.lang.String key,
boolean b)
key - name of the field in the templateb - sets to boolean value according to: b ? "true" : ""public void exposeResourceBundle(java.lang.String lookupName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||