At The notions of "themes" and "templates" are at the core of the HTML Struts Tags provided by WebWork are themes and templates. We'll first start off with a simple definition of three key terms:
...
the framework.
Definitions
tag | A small piece of code executed from within JSP, FreeMarker, or Velocity. |
---|---|
template |
...
A bit of code, usually written in FreeMarker, that can be rendered by certain tags (HTML tags) | |
theme |
...
A collection of templates packaged together to provide common functionality |
Tags are covered in the Tags section, so we won't discuss them much here other than their relationship to themes and templates already stated. Instead, we'll focus on several important topics:
...
See Struts Tags for more about the HTML and other tags provided by the framework.
Template Basics
How templates are loaded | |
How the template directories are loaded | |
How you can pick a theme when writing your results | |
...
How to create your own themes based on |
...
existing themes |
...
More About Themes
...
A minimal theme with |
...
no "bells and whistles" |
...
The default theme that uses common HTML practices | |
...
The xhtml theme re-implemented using strictly CSS for layout | |
...
A theme based on the xhtml theme that provides advanced AJAX features |