Package sunlabs.brazil.template
Class FormClientTemplate
java.lang.Object
sunlabs.brazil.template.Template
sunlabs.brazil.template.FormClientTemplate
- All Implemented Interfaces:
TemplateInterface
[Deprecated, use the FormTemplate and SetTemplate instead]
SAMPLE Template class for substituting Default values into html forms The data is retrieved from the client, and sent back to the client later on. This will be used for e-business cards stored on java rings/cards. This template also incorporates the functionallity of the PropsTemplate, as the current scheme doesn't allow composition of template handler classes (at least for now). If a URL contains query data, and the value of the server property "uploadContains" occurs in the URL, then all of the query data is saved in the server on behalf of the client. IF no "uploadContains" string is set, all query data is saved on the server. The following Html entities processed by this class:
SAMPLE Template class for substituting Default values into html forms The data is retrieved from the client, and sent back to the client later on. This will be used for e-business cards stored on java rings/cards. This template also incorporates the functionallity of the PropsTemplate, as the current scheme doesn't allow composition of template handler classes (at least for now). If a URL contains query data, and the value of the server property "uploadContains" occurs in the URL, then all of the query data is saved in the server on behalf of the client. IF no "uploadContains" string is set, all query data is saved on the server. The following Html entities processed by this class:
- Version:
- @(#)FormClientTemplate.java 2.1
- Author:
- Stephen Uhler
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
init
(RewriteContext hr) Save a reference to our request properties.void
Look for , and replace the value with the entry in the previously saved client data.void
Convert the html tag "property" in to the request's property.void
void
Tag to do substitution of previously uploaded data.void
Using the current scheme, there is no easy way to substitute into a tag parameter.
-
Constructor Details
-
FormClientTemplate
public FormClientTemplate()
-
-
Method Details
-
init
Save a reference to our request properties. If the URL contains the upload string, save all of the query parameters on behalf of the user.- Specified by:
init
in interfaceTemplateInterface
- Overrides:
init
in classTemplate
-
tag_input
Look for , and replace the value with the entry in the previously saved client data.- Parameters:
h
- The attribute/value pairs for this entity.
-
tag_property
Convert the html tag "property" in to the request's property.- Parameters:
h
- Hashtable containing tag parameters "name" The property name "default" a default value, if no name available
-
tag_subst
Tag to do substitution of previously uploaded data.- Parameters:
name
- The name of the token to replace with client data.
-
tag_tag
Using the current scheme, there is no easy way to substitute into a tag parameter. So we'll invent a "magic" tag (called tag) that will allow us to create entities dynamically -
tag_slash_tag
-