|
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectsunlabs.brazil.template.Template
sunlabs.brazil.template.PropsTemplate (view source)
public class PropsTemplate
[Deprecated, use the the SetTemplate.]
Template class for substituting request properties into an HTML page.
This class is used by the TemplateHandler
The following request properties are used:
url instead of the one in request.url.
A new HTML tag,
<property> is defined. It takes the following
tag attributes:
props
to replace the property tag with.
default is specified, the empty
string is used instead.
| Field Summary |
|---|
| Fields inherited from class sunlabs.brazil.template.Template |
|---|
debug |
| Constructor Summary | |
|---|---|
PropsTemplate()
|
|
| Method Summary | |
|---|---|
boolean |
init(RewriteContext hr)
This gets called at every page, at the beginning. |
void |
tag_property(RewriteContext hr)
Convert the html tag "property" in to the request's property |
void |
tag_slash_tag(RewriteContext hr)
Insert a literal ">" |
void |
tag_tag(RewriteContext hr)
Insert a literal "<". |
| Methods inherited from class sunlabs.brazil.template.Template |
|---|
done |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropsTemplate()
| Method Detail |
|---|
public boolean init(RewriteContext hr)
init in interface TemplateInterfaceinit in class Templatepublic void tag_property(RewriteContext hr)
hr - The rewrite context used to fetch the
name of the property to substitute. Variable
substitution using the style described in
Format.getProperty(java.util.Properties, java.lang.String, java.lang.String) is permitted, e.g.:
employee.${id}.lastpublic void tag_tag(RewriteContext hr)
<tag>a href=<property href></tag>
public void tag_slash_tag(RewriteContext hr)
|
Version Kenai-svn-r24, Generated 08/18/09 Copyright (c) 2001-2009, Sun Microsystems. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||