| |
|
| java.lang.Object sunlabs.brazil.template.Template sunlabs.brazil.template.FormTemplate
FormTemplate | public class FormTemplate extends Template implements Serializable(Code) | | Template class for substituting Default values into html forms
This class is used by the TemplateHandler.
The default values in form tags are replaced by the server property that
matches the field name. The following field elements are processed:
- <input name=x value=y>
- <input type=input name=x value=y>
- <input type=radio name=x value=y>
- <option value=x>
In all cases, the value attribute must be present.
author: Stephen Uhler version: @(#) FormTemplate.java 1.5 99/06/30 12:23:07 |
tag_input | public void tag_input(RewriteContext hr)(Code) | | Look for <input name=[x] value=[v]> and replace the
value with the entry in the request properties. If no value is supplied,
no substitution is done.
|
tag_option | public void tag_option(RewriteContext hr)(Code) | | Look at the option tag, set the "selected" attribute as needed.
In order for this to work, the VALUE tag *must* be used
|
tag_select | public void tag_select(RewriteContext hr)(Code) | | Remember the variable name for the next group of option tags.
|
tag_slash_select | public void tag_slash_select(RewriteContext hr)(Code) | | Forget the variable name for the next group of option tags
|
|
|
|