






|
Example 1:
Template: File: templ.txt |
<HTML> |
<BODY> |
<input type="text" name="TextBox"> |
</BODY> |
</HTML> |
|
Program: |
template = TemplateLoader.getTemplate("templ") |
contol = template.getControl("TextBox") |
control.setValue("Hello") |
template.outputToBrowser( out ) |
|
Browser: |
<HTML> |
<BODY> |
<input type="text" name="TextBox"
value="Hello"> |
</BODY> |
</HTML> |
|
As you can see in this case template is a pure HTML page. Later in documentation we
will have better understanding of all objects and properties.


|
|