<commit_before># Struts2 jQuery Plugin

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

#### [Download] (https://oss.sonatype.org/content/groups/staging/com/jgeppert/struts2/jquery/)
#### [News and Developer Blog] (https://www.jgeppert.com)
#### [Showcase] (http://struts.jgeppert.com/struts2-jquery-showcase/)
#### [Showcase Grid Plugin] (http://struts.jgeppert.com/struts2-jquery-grid-showcase/)


## Features

### AJAX support
Easy AJAX Form submission and remote call with the anchor and div tag.
Support for AJAX in the Tabs.

```jsp
<%@ 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}" targets="div1">
      Update Content
    </sj:a>
  </body>
</html>
```

### Support for themes
Built in themes from jQuery
  * black-tie
  * blitzer
  * cupertino
  * dot-luv
  * eggplant
  * excite-bike
  * flick
  * hot-sneaks
  * humanity
  * le-frog
  * mint-choc
  * overcast
  * pepper-grinder
  * redmond
  * smoothness
  * start
  * sunny
  * swanky-purse
  * trontastic
  * ui-darkness
  * ui-lightness
  * vader
  * Your custom theme create with [jQuery ThemeRoller](http://jqueryui.com/themeroller/)

More about themes see the [Head Tag](https://code.google.com/p/struts2-jquery/wiki/HeadTag)

Use of Build in themes:
```jsp
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
  <head>
    <sj:head jqueryui="true" jquerytheme="cupertino"/>
  </head>
  <body>
  </body>
</html>
```

Use of your costume theme:

```jsp
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
  <head>
    <sj:head jqueryui="true" jquerytheme="mytheme" customBasepath="template/themes"/>
  </head>
  <body>
  </body>
</html>
```

### UI widgets
  * [Tabbed Panel](https://code.google.com/p/struts2-jquery/wiki/TabbedPanelTag)
  * [Datepicker](https://code.google.com/p/struts2-jquery/wiki/DatePickerTag)
  * [Dialog](https://code.google.com/p/struts2-jquery/wiki/DialogTag)
  * [Menu](https://code.google.com/p/struts2-jquery/wiki/MenuTag)
  * [Accordion](https://code.google.com/p/struts2-jquery/wiki/AccordionTag)
  * [Autocompleter](https://code.google.com/p/struts2-jquery/wiki/AutocompleterTag)
  * [Button](https://code.google.com/p/struts2-jquery/wiki/Button)
  * [Buttonset](https://code.google.com/p/struts2-jquery/wiki/Buttonset)
  * [Progressbar](https://code.google.com/p/struts2-jquery/wiki/ProgressbarTag)
  * [Slider](https://code.google.com/p/struts2-jquery/wiki/SliderTag)
  * [Grid](https://code.google.com/p/struts2-jquery/wiki/GridTag)
  * [Richtext Editor](https://code.google.com/p/struts2-jquery/wiki/RichtextEditor)
  * [Charts](https://code.google.com/p/struts2-jquery/wiki/ChartTag)
  * [Spinner](https://code.google.com/p/struts2-jquery/wiki/SpinnerTag)

### UI interactions
  * [Resizable for Divs](https://code.google.com/p/struts2-jquery/wiki/Resizable)
  * [Drag and Drop for Divs](https://code.google.com/p/struts2-jquery/wiki/DragAndDrop)
  * [Selectable for Divs](https://code.google.com/p/struts2-jquery/wiki/Selectable)
  * [Sortable for Divs](https://code.google.com/p/struts2-jquery/wiki/Sortable)


## Installation

### How can I use the Plugin?

  * [Download](https://oss.sonatype.org/content/groups/staging/com/jgeppert/struts2/jquery/) the struts2-jquery-plugin-x.x.x.jar
  * Put it into your Classpath (WEB-INF/lib)
  * Add the Tag-Lib to your JSP `<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>`
  * Place the [HeadTag Head Tag] inside your html head tags

### How can I use the Plugin from Maven?

Since version 1.8.3 the plugin is found in the central Maven repository. Just add to your dependencies section:
```xml
<dependencies>
    ...
    <dependency>
        <groupId>com.jgeppert.struts2.jquery</groupId>
        <artifactId>struts2-jquery-plugin</artifactId>
        <version>3.7.1</version>
    </dependency>
    <dependency><commit_msg>Add link to wiki page and remove feature section<commit_after># Struts2 jQuery Plugin

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

#### [Download] (https://oss.sonatype.org/content/groups/staging/com/jgeppert/struts2/jquery/)
#### [News and Developer Blog] (https://www.jgeppert.com)
#### [Showcase] (http://struts.jgeppert.com/struts2-jquery-showcase/)
#### [Showcase Grid Plugin] (http://struts.jgeppert.com/struts2-jquery-grid-showcase/)
#### [Wiki - Documentation] (https://github.com/struts-community-plugins/struts2-jquery/wiki)

## Installation

### How can I use the Plugin?

  * [Download](https://oss.sonatype.org/content/groups/staging/com/jgeppert/struts2/jquery/) the struts2-jquery-plugin-x.x.x.jar
  * Put it into your Classpath (WEB-INF/lib)
  * Add the Tag-Lib to your JSP `<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>`
  * Place the [HeadTag Head Tag] inside your html head tags

### How can I use the Plugin from Maven?

Since version 1.8.3 the plugin is found in the central Maven repository. Just add to your dependencies section:
```xml
<dependencies>
    ...
    <dependency>
        <groupId>com.jgeppert.struts2.jquery</groupId>
        <artifactId>struts2-jquery-plugin</artifactId>
        <version>3.7.1</version>
    </dependency>
    <dependency>
{'fraction_non_alphanumeric': 0.16639683396294297, 'fraction_numerical': 0.009713977334052886, 'mean_word_length': 3.9510240427426537, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 26, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3328857', 'n_tokens_mistral': 2050, 'n_tokens_neox': 1984, 'n_words': 396}