jQuery UI Menu support with now released Struts2 jQuery Plugin 3.5.0

With jQuery UI 1.9 this popular JavaScript Library provides a Menu Widget, which is now also available in the Struts2 jQuery Plugin. jQuery UI 1.9 includes some API redesigns which also touches the Struts2 jQuery Plugin. So please respect the Upgrade Guide.

Menu Tag

The Menu Tag can be used with some manually added Menu Items or it can be generated form a List of Values. Two new Showcase Examples explain this. Struts2 jQuery Menu

    id="menuWithItems" cssStyle="width:50%">
        title="Struts2" href="http://struts.apache.org/2.x/index.html"/>
        title="Struts2 jQuery News" menuIcon="ui-icon-extlink" href="https://www.jgeppert.com/category/java/struts2-jquery/"/>
        title="Struts2 Plugins">
            id="subMenuPlugins" cssStyle="width:50%">
                title="Struts2 Plugins" href="https://cwiki.apache.org/S2PLUGINS/home.html"/>
                title="Struts2 jQuery Plugin" href="http://code.google.com/p/struts2-jquery/"/>
                title="Struts2 Bootstrap Plugin" href="http://code.google.com/p/struts2-jquery/"/>
        title="Struts2 @ Social Media">
            id="subMenuSocialMedia" cssStyle="width:50%">
                title="Struts2 @ Twitter" href="https://twitter.com/TheApacheStruts"/>
                title="Struts2 @ Google+" href="https://www.google.com/+ApacheStruts"/>
                title="Struts2 @ Facebook" href="http://www.facebook.com/struts2"/>
            id="subMenuAjax" cssStyle="width:50%">
                var="ajax1" value="https://www.jgeppert.com/ajax1.action"/>
                title="Ajax 1" href="%{ajax1}" targets="result"/>
                var="ajax2" value="https://www.jgeppert.com/ajax2.action"/>
                title="Ajax 2" href="%{ajax2}" targets="result" effect="highlight" effectDuration="2500"/>
                var="ajax3" value="https://www.jgeppert.com/ajax3.action"/>
                title="Ajax 3" href="%{ajax3}" targets="result" onBeforeTopics="beforeLink"
                var="ajax4" value="https://www.jgeppert.com/ajax4.action"/>
                title="Ajax 4" href="%{ajax4}" menuIcon="ui-icon-gear" targets="result" effect="bounce" effectDuration="1000"/>

Spinner Tag

The currently based Spinner Tag was based on an community jQuery plugin. This plugin was replaced by the Spinner Widget provided by the jQuery UI Lib itself. This brings some API Changes, especially the handling for Currency and Number Formating was changed. This is now based on jQuery Globalize project.

Modern Web Application Development With Apache Struts2 - ApacheCon Europa 2012

I give my first Conference Talk ever at the ApacheCon Europa 2012 together with René Gielen the PMC Chair of the Apache Struts Project. This was a great Experience for me. The Talk was recorded and is now free available at youtube.com. This talks explains how to develop modern Web Applications with Apache Struts and the both Plugins Struts2 jQuery and Struts2 Bootstrap.




The Code form our Todo Example is free available at github.


Simply check it out and run mnv:install to get the war file or run mvn:jetty run and take a look at the result in your browser.


Library Updates

For a complete list of changes since last version, please visit the Changelog.

Download: http://code.google.com/p/struts2-jquery/downloads/list
Showcase: http://struts.jgeppert.com/struts2-jquery-showcase/
Issues: http://code.google.com/p/struts2-jquery/issues/list
User Group: http://groups.google.com/group/struts2-jquery


  1. Sanjay M

    Congrats on your talk! Looking forward to watching it some time soon

    Now that jQuery 1.9 and jQuery UI 1.10 are out, is there any place where we can see a timeline for the planned upgrade to the struts2jquery plugin? Thanks a lot for your valuable contribution!

    1. jogep (Post author)

      Thanks for your feedback. Until yet there is no release plan. It is ready when it is ready. 🙂

      But I always try to keep in touch with latest releases.

  2. Sanjay M

    Slide show is really cool! 🙂

  3. Alexander

    Can we use struts2-jquery-plugin in tiles system?
    I mean header, body, footer and menu… so one created menu would be shared between all pages???

    1. jogep (Post author)

      I never tried it, but this should work.
      Just be sure you are placing the tag inside of the head area.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.