Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Name

Java Templates Plugin

Publisher

Struts 2

License

Open Source (ASL2)

Version

2.1.3-SNAPSHOT

Compatibility

Struts 2.1+

Wiki Markup
{rate:title=Rating|theme=dynamic}

Warning

This plugin is in the Struts sandbox and has not been released yet

This plugin provides a

Excerpt

faster Java implementation of tags in the "simple" theme

. Struts tags are implemented using FreeMarker as the rendering engine, which provides, among other things, the option to overwrite the tags. This plugin implements the tags in the "simple" theme, using Java (FreeMarker is not involved at all), which provides a performance boost to page rendering.

Installation

The plugin is in beta stage, so to use it, you will have to download the code and build it, here are the steps:

1. Check the code from svn:

...

Homepage

http://

...

...

...

...

2. Add maven dependency to your webapps

...


<dependency>
   <groupId>org.apache.struts</groupId>
   <artifactId>struts2-javatemplates-plugin</artifactId>
   <version>2.1.3-SNAPSHOT</version>
</dependency>

3. Set this properties in struts.xml:

...


<constant name="struts.ui.templateSuffix" value="java" />
<constant name="struts.ui.theme" value="simple" />

The plugin is a drop in replacement for the supported tags in the simple theme, so no other configuration is required.

Supported tags

text,select,form,a,checkbox,file,password,label,reset,submit,textarea,actionerror,token,actionmessage,head,hidden,fielderror,div

Performance benchmark

TODO

Version History

Notes

Version

Date

Author