Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

 

 

 

 

 

 

 

 

 

{rate:title=Rating|theme=dynamic}

 

 

 

 

 

 

 

 

 

Overview

A Plugin for the popular java web framework struts2 to provide ajax functionality and UI Widgets based on the jQuery javascript framework.

Features

Installation

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.

Installation with Maven

Just add to your dependencies section:

xmlMaven Dependecies<dependencies> ... <dependency> <groupId>com.jgeppert.struts2.jquery</groupId> <artifactId>struts2-jquery-plugin</artifactId> <version>4.0.1</version> </dependency> <dependency> <groupId>com.jgeppert.struts2.jquery</groupId> <artifactId>struts2-jquery-grid-plugin</artifactId> <version>4.0.1</version> </dependency> <dependency> <groupId>com.jgeppert.struts2.jquery</groupId> <artifactId>struts2-jquery-datatables-plugin</artifactId> <version>4.0.1</version> </dependency> <dependency> <groupId>com.jgeppert.struts2.jquery</groupId> <artifactId>struts2-jquery-richtext-plugin</artifactId> <version>4.0.1</version> </dependency> <dependency> <groupId>com.jgeppert.struts2.jquery</groupId> <artifactId>struts2-jquery-chart-plugin</artifactId> <version>4.0.1</version> </dependency> <dependency> <groupId>com.jgeppert.struts2.jquery</groupId> <artifactId>struts2-jquery-tree-plugin</artifactId> <version>4.0.1</version> </dependency> <dependency> <groupId>com.jgeppert.struts2.jquery</groupId> <artifactId>struts2-jquery-mobile-plugin</artifactId> <version>4.0.1</version> </dependency> ... </dependencies>

To access SNAPSHOT builds, you need to declare the snapshot repository lookup in your pom.xml:

xmlMaven SNAPSHOT repositroy configuration... <repositories> ... <repository> <id>sonatype.oss.snapshots</id> <name>Sonatype OSS Snapshot Repository</name> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <releases>false</releases> <snapshots>true</snapshots> </repository> </repositories> ...

Examples

Ajax Call

xml<%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="sj" uri="/struts-jquery-tags"%> <html> <head> <sj:head/> </head> <body> <div id="div1">Div 1</div> <s:url id="ajaxTest" value="/AjaxTest.action"/> <sj:a id="link1" href="%{ajaxTest}" target="div1"> Update Content </sj:a> </body> </html>

Tabbed Panel

xml<%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="sj" uri="/struts-jquery-tags"%> <html> <head> <sj:head jqueryui="true"/> </head> <body> <s:url id="remoteurl1" action="myremoteactionone"/> <s:url id="remoteurl2" action="myremoteactiontwo"/> <s:url id="remoteurl3" action="myremoteactionthree"/> <sj:tabbedpanel id="mytabs2" selectedTab="1"> <sj:tab id="tab1" href="%{remoteurl1}" label="Tab One"/> <sj:tab id="tab2" href="%{remoteurl2}" label="Tab Two"/> <sj:tab id="tab3" href="%{remoteurl3}" label="Tab Three"/&> </sj:tabbedpanel> </body> </html>

More Sample in the Project Wiki

Resources

Version History

Version

Date

Author

Notes

4.0.1Dec 6, 2016Version 4.0.1

3.7.1

Mai 13, 2014Version 3.7.1

3.5.0

Dec 17, 2012

Version 3.5.0

3.4.0

Oct 15, 2012

Version 3.4.0

3.3.3

Jul 14, 2012

Version 3.3.3

3.3.2

Jul 10, 2012

Version 3.3.2

3.3.1

Mai 8, 2012

Version 3.3.1

3.3.0

Mar 13, 2012

Version 3.3.0

3.1.0

Jun 29, 2011

Version 3.1.0

3.0.0

Mai 5, 2011

Version 3.0.0

2.5.2

Feb 8, 2011

Version 2.5.2

2.5.1

Jan 17, 2011

Version 2.5.1

2.4.0

Sep 07, 2010

Version 2.4.0

2.3.1

Jul 25, 2010

Version 2.3.1

2.3.0

Jul 12, 2010

Version 2.3.0

2.2.2

Jun 19, 2010

Version 2.2.2

2.2.0

Jun 07, 2010

Version 2.2.0

2.1.1

Mai 24, 2010

Version 2.1.1

2.1.0

Mai 1, 2010

Version 2.1.0

2.0.0

Mar 22, 2010

Version 2.0.0

1.8.3

Feb 08, 2010

Version 1.8.3

1.8.2

Jan 25, 2010

Version 1.8.2

1.8.1

Jan 7, 2010

Version 1.8.1

1.8.0

Dec 10, 2009

Version 1.8.0

1.7.0

Nov 16, 2009

Version 1.7.0

1.6.0

Oct 26, 2009

Version 1.6.0

1.5.0

Oct 5, 2009

Version 1.5.0

1.3

Aug 26, 2009

Version 1.3 (Beta)

1.2

Aug 24, 2009

Version 1.2 (Beta)

1.0

Jul 24, 2009

Version 1.0

0.9.2

Jul 20, 2009

Version 0.9.2