Hi all, I have a problem with the closing freemarker templates. Maybe you can help me out. Here is the thing I want:
In a s:div tag I use a self created template overviewDiv.ftl, which contains some layout instructions. The problem is, that the overviewDiv-close.ftl is ignored / not recognized by struts2. Other ftl's work in my application, also the closing ftl's like s:form-close are detected. Here is a minimal example: Several jsp pages should contain the following code snippet: <s:div theme="myTheme" template="overviewDiv" label="mylabel" name="address.name"> <s:textfield name="address.lastName" theme="simple" /> </s:div> The overviewDiv.ftl should contain some layout instructions like: <div class="overview"> <div class="overviewLabel"> ${parameters.label}<#rt/> </div> <div class="overviewValue"> The closing template (overviewItem-close.ftl) should contain: </div> <br /> </div> The final html source code should look like this: <div class="overview"> <div class="overviewLabel"> contact name </div> <div class="overviewValue"> <input type="text" name="lastname" /> </div> <br /> </div> The great goal is to nest the input field "lastname" between the code of overviewItem.ftl and overviewItem-close.ftl; in the example above into <div class="overviewValue"> </div> Any ideas how to realize this? Thanks in advance, Stephan