title: Struts2 jQuery configuration issue
body: <p>In my webapp I am using struts2-jquery plugin.</p>
  
  <pre><code>Struts2 version - 2.3.7
  struts.jquery.version - 3.5.0
  </code></pre>
  
  <p>For using jQuery with Struts I've used the following configurations -</p>
  
  <p>In pom.xml</p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;com.jgeppert.struts2.jquery&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-jquery-plugin&lt;/artifactId&gt;
              &lt;version&gt;${struts.jquery.version}&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>In my JSP added the following tag:</p>
  
  <pre><code> &lt;sj:head  jqueryui="true"/&gt;
  </code></pre>
  
  <p>And used an <code>autocompleter</code> widget like this:</p>
  
  <pre><code>&lt;s:url var="supUrl" namespace="/ajax" action="suppliers"/&gt;
   &lt;sj:autocompleter
      id="supplierMap"
      name="echo"
       label="Handle a Map"
       href="%{supUrl}"
       list="supplierMap"/&gt;
  </code></pre>
  
  <p>I get the following JavaScript error:</p>
  
  <pre><code>Cannot call method 'bind' of undefined
  jQuery.struts2_jquery_ui.bind(jQuery('#supplierMap_widget'),options_supplierMap_widget);
  </code></pre>
  
  <p>When I do <em>View Page Source</em> in the browser I see the following. Here the path for the JavaScript include is not the same as how it is packaged in struts2-jquery-plugin.jar.</p>
  
  <pre><code>&lt;script type="text/javascript" src="/struts/js/base/jquery-1.8.3.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/struts/js/base/jquery.ui.core.min.js?s2j=3.5.0"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="/struts/js/plugins/jquery.subscribe.min.js"&gt;&lt;/script&gt;
  
    &lt;script type="text/javascript" src="/struts/js/struts2/jquery.struts2.min.js?s2j=3.5.0"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  $(function() {
      jQuery.struts2_jquery.version="3.5.0";
      jQuery.scriptPath = "/struts/";
      jQuery.ajaxSettings.traditional = true;
  
      jQuery.ajaxSetup ({
          cache: false
      });
  
      jQuery.struts2_jquery.require("js/struts2/jquery.ui.struts2.min.js");
  
  });
  &lt;/script&gt;
  </code></pre>