Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleAbout SiteMesh

SiteMesh is a web-page layout and decoration framework and web - application integration framework to aid in creating large sites consisting of many pages for which a consistent look/feel, navigation and layout scheme is required.

...

The framework stores all its value stack information in the as request attributes, meaning that if you wish to display data that is on the stack (or even the ActionContext), you can do so by using the normal tag libraries that come with the framework. That's it!

...

Info
titleJavadoc: (org.apache.struts.action2.dispatcher.ActionContextCleanUp)
Wiki Markup
{snippet:id=description|javadoc=true|url=comorg.opensymphonyapache.webworkstruts2.dispatcher.ActionContextCleanUp}

FreeMarker and Velocity

...

Decorators

The framework provides an extension of the SiteMesh PageFilter to assist with integration with Velocity and FreeMarker. Our filters provide the standard variables and Struts Tags that you used to create views in your favorite template language.

...

The VelocityPageFilter extends the SiteMesh PageFilter to allow direct access to framework variables such as $stack and $request.

In the web.xml, the VelocityPageFilter should be placed between the ActionContextCleanUp and the {FilterDispatcher}}.

FreeMarker

The FreeMarkerPageFilter extends the SiteMes PageFilter to allow direct access to framework variables such as $stack and $request.

...

Info
titleJavadoc: (example.freemarker.filter.chain)
Wiki Markup
{snippet:id=example.freemarker.filter.chain|javadoc=false|lang=xml|url=https://webwork.dev.java.net/source/browse/*checkout*/webwork/webapps/struts2/apps/showcase/src/main/webapp/WEB-INF/web.xml?content-type=text%2Fplain}
Wiki Markup
{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.sitemesh.FreeMarkerPageFilter}

Velocity

The VelocityPageFilter extends the SiteMesh PageFilter to allow direct access to framework variables such as $stack and $request.

In the web.xml, the VelocityPageFilter should be placed between the ActionContextCleanUp and the {FilterDispatcher}}.