sunlabs.brazil.template
public class FormTemplate extends Template
value
attribute must be present.
additional information is provided below.
If the enclosing <form> tag has the attribute "prepend", then "prepend" is tacked on the front of each variable name before its value is looked-up. The "prepend" attribute is then removed from the form tag.
Version: @(#)FormTemplate.java 2.4
Method Summary | |
---|---|
boolean | done(RewriteContext hr)
This is for debugging only ! |
boolean | init(RewriteContext hr)
Save a reference to our request properties. |
void | tag_form(RewriteContext hr)
Look for a "prepend" attrubute, remember its value, then remove it
from the tag. |
void | tag_input(RewriteContext hr)
Look for <input name=[x] value=[v]> and replace the
value with the entry in the request properties. |
void | tag_option(RewriteContext hr)
Look at the option tag, set the "selected" attribute as needed.
|
void | tag_select(RewriteContext hr)
Remember the variable name for the next group of option tags. |
void | tag_slash_form(RewriteContext hr)
Forget about the "prepend" value |
void | tag_slash_select(RewriteContext hr)
Forget the variable name for the next group of option tags |
value
contains any ${..} constructs, the substituted
value is used instead of the value in the corrosponding request property.