<%@taglib prefix="s" uri="/struts-tags" %> Struts2 Showcase - UI Tags - Component Tag

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.

Example 2:

This example load the template from the webapp context path using jsp as its template (notice the *.jsp extension to the template).

Example 3

This example load the template from the webapp context path, using the default template directory and theme (default to 'template' and 'xhtml' respectively)

Example 4

This example load the template from the webapp classpath using a custom themplate directory and theme.