title: How to use Ajax JQuery in Spring Web MVC
body: <p>I am using Spring Web MVC for my application.</p>
  
  <p>I have 1 dropdown list in my JSP View, coming from following request called <code>savegroup.htm</code></p>
  
  <pre><code>&lt;bean name="/savegroup.htm" class="com.sufalam.mailserver.presentation.web.GroupSaveController"&gt;
      &lt;property name="sessionForm" value="true"/&gt;
      &lt;property name="commandName" value="Group"/&gt;
      &lt;property name="commandClass" value="com.sufalam.mailserver.presentation.bean.GroupViewBean"/&gt;
      &lt;property name="formView" value="common"/&gt;
      &lt;property name="successView" value="managegroup.htm"/&gt;
      &lt;property name="userSecurityProcessor" ref="IUserSecurityProcessor"/&gt;
      &lt;property name="domainsSecurityProcessor" ref="IDomainsSecurityProcessor"/&gt;
      &lt;property name="forwardingsSecurityProcessor" ref="IForwardingsSecurityProcessor"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>JSP page has:</p>
  
  <pre><code>&lt;form:form name="groupSaveForm" action="savegroup.htm" commandName="Group" method="POST"&gt;
      Group Name :
      &lt;form:input path="source"/&gt;&lt;br&gt;&lt;br&gt;
      Domain List :
      &lt;form:select id="domains" onchange="javascript:getUser();" path="domainsList" multiple="false" size="1"&gt;
          &lt;form:option value="-" label="--Select--"/&gt;
          &lt;form:options items="${domainsList}" itemValue="domain" itemLabel="domain"/&gt;
      &lt;/form:select&gt;
  &lt;/form:form&gt;
  </code></pre>
  
  <p>Now my requirement is that, on the change event of my drop down list, I want to fetch related users from server and display that list of users in some list box.</p>
  
  <p>For that how can I use jQuery AJAX call?</p>
  
  <p>Where should I handle server side code which receives request and fetch related user?</p>
  
  <p>How to display that coming set of users in my JSP?</p>