|
Forward Computing and Control Pty. Ltd. WebStringTemplate V1.5.0 2004/1/7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.com.forward.webstringtemplate.WebStringTemplateServer
This class provides a set of useful server side WebStringTemplate routines.
These are in a separate class so that RunWST does not need any
javax.servlet.* classes in order to run.
| Field Summary | |
static java.util.logging.Logger |
logger
The Java logger for this class |
| Constructor Summary | |
WebStringTemplateServer()
|
|
| Method Summary | |
static WebStringTemplate |
getInstanceOf(javax.servlet.ServletContext application,
java.lang.String groupName,
java.lang.String groupRootDir,
java.lang.String templateName)
Get a template loaded with default data, using cache if possiable. |
static WebStringTemplate |
getInstanceOf(javax.servlet.ServletContext application,
java.lang.String groupName,
java.lang.String groupRootDir,
java.lang.String templateName,
java.lang.String dataFileName)
Get a template loaded with default data, using cache if possiable. |
static WebStringTemplateGroup |
getInstanceOfGroup(javax.servlet.ServletContext application,
java.lang.String groupName,
java.lang.String groupRootDir)
Get a group from this ServletContext. |
static WebStringTemplate |
setJSPAttributes(WebStringTemplate wst,
java.lang.Object scopeObject)
Adds any attributes defined in the given scope to the template. |
static void |
setRefreshInterval(javax.servlet.ServletContext application,
java.lang.String groupName,
int refreshInterval)
Set the refresh interval for this application group. |
static void |
writePageTemplate(WebStringTemplate wst,
javax.servlet.jsp.PageContext pageContext)
Write out this template using the attributes in the pageContext. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.util.logging.Logger logger
| Constructor Detail |
public WebStringTemplateServer()
| Method Detail |
public static void writePageTemplate(WebStringTemplate wst,
javax.servlet.jsp.PageContext pageContext)
throws java.io.IOException
wst - the template to writepageContext - the JSP page context containing the attributes to be
inserted in the template
java.io.IOException - Description of the Exception
public static WebStringTemplate getInstanceOf(javax.servlet.ServletContext application,
java.lang.String groupName,
java.lang.String groupRootDir,
java.lang.String templateName)
application - the JSP application objectgroupName - the name of the group, used to look for an existing
group.groupRootDir - the rootDir of the group, only used in a new group is
created.templateName - the template to load (without any extension)
public static void setRefreshInterval(javax.servlet.ServletContext application,
java.lang.String groupName,
int refreshInterval)
application - the JSP application objectgroupName - the name of the group, used to look for an
existing group.refreshInterval - the refresh interval (Sec), if < 0 set to
0, 0 means no caching.
java.lang.IllegalStateException - if group does not already exists in this
application.
public static WebStringTemplate getInstanceOf(javax.servlet.ServletContext application,
java.lang.String groupName,
java.lang.String groupRootDir,
java.lang.String templateName,
java.lang.String dataFileName)
application - the JSP application objectgroupName - the name of the group, used to look for an existing
group.groupRootDir - the rootDir of the group, only used in a new group is
created.templateName - the template to load (without any extension)dataFileName - the dataFile to load (with extension) or null if no
dataFile to be loaded
public static WebStringTemplateGroup getInstanceOfGroup(javax.servlet.ServletContext application,
java.lang.String groupName,
java.lang.String groupRootDir)
application - the JSP application objectgroupName - the name of the group, used to look for an existing
group.groupRootDir - the rootDir of the group, only used in a new group is
created.
public static WebStringTemplate setJSPAttributes(WebStringTemplate wst,
java.lang.Object scopeObject)
Any existing attributes of the same name are overwritten.
wst - the template to load with the JSP attributesscopeObject - the scope object to load from or a Map object
|
Forward Computing and Control Pty. Ltd. WebStringTemplate V1.5.0 2004/1/7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||