Apache Struts 2 Documentation > Home > Guides > Tag Developers Guide > Struts Tags > UI Tags > Themes and Templates > xhtml theme > xhtml form template
Added by plightbo, last edited by Ted Husted on Sep 03, 2006  (view change)

The xhtml form template sets up the wrapping table around all the other test:xhtml theme form elements. In addition to creating this wrapping table, the opening and closing templates also, if the validate parameter is set to true, enable Pure JavaScript Client Side Validation. See the form.ftl contents:

Content pulled from external source. Click here to refresh.
<#include "/${parameters.templateDir}/xhtml/form-validate.ftl" />
<#include "/${parameters.templateDir}/simple/form.ftl" />
<#include "/${parameters.templateDir}/xhtml/control.ftl" />

The closing template, form-close.ftl:

Content pulled from external source. Click here to refresh.
<#include "/${parameters.templateDir}/xhtml/control-close.ftl" />
<#include "/${parameters.templateDir}/simple/form-close.ftl" />
<#include "/${parameters.templateDir}/xhtml/form-close-validate.ftl" />