This example tries to demonstrates the usage of <s:component ... > tag.
To have a look at the source of this jsp page click here
Example 1:This example load the template from the webapp context path using the default (ftl) as its template.
Freemarker Custom Template - parameter 'paramName' - paramValue1
This example load the template from the webapp context path using jsp as its template (notice the *.jsp extension to the template).
JSP Custom Template - parameter 'paramName' - paramValue2
This example load the template from the webapp context path, using the default template directory and theme (default to 'template' and 'xhtml' respectively)
JSP Custom Template - parameter 'paramName' - paramValue3
This example load the template from the webapp classpath using a custom themplate directory and theme.
Freemarker Custom Template - parameter 'paramName' - paramValue4