Apache Struts 2 Documentation > Home > FAQs > Can I change templateSuffix on a per-page basis |

Apache Struts 2 Documentation
Can I change templateSuffix on a per-page basis
Edit Page Browse Space Add Page Add News
Added by emolitor, last edited by Ted Husted on Jul 22, 2006 (view change) show comment hide comment
Comment:
Update parent page
View page history

The `templateSuffix` variable controls which templating engine is used to render a page. To change the engine for a particular page, change the value of the `templateSuffix` variable.

## Change to the Velocity Engine

    <saf:set name="templateSuffix" value="vm" />

## Change to the JSP engine

    <saf:set name="templateSuffix" value="jsp" />

## Change to the FreeMarker engine

Freemarker is the default templating engine

    <saf:set name="templateSuffix" value="ftk" />

See also Template Loading.