This plugin provides a
Excerpt |
---|
faster Java implementation of tags in the "simple" theme |
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:
Code Block |
---|
svn co http://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-javatemplates-plugin struts2-javatemplates-plugin
cd struts2-javatemplates-plugin
mvn install
|
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 1. This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib directory. No other files need to be copied or created.
2. Set these properties in struts.xml:
Code Block | ||||
---|---|---|---|---|
| ||||
<constant name="struts.ui.templateSuffix" value="java" />
<constant name="struts.ui.theme" value="simple" />
|
...
- a
- actionerror
- actionmessage
- checkbox
- datetextfield
- div
- fielderror
- file
- form
- head
- hidden
- label
- password
- select
- reset
- submit
- texttextfield
- textarea
- token
Performance benchmark
...