title: How to Handle Popup Window in Spring?
body: <p>In my Spring Application have Display some Existing Users in Database In Jsp</p>
  
  <pre><code>&lt;a id="details" href="#"class="copyright-text read_link" title="FAQs" onclick="sendForm()";&gt;    
  
  &lt;label for="subject"&gt;${user.name}&lt;/label&gt;   
  &lt;/a&gt;
  </code></pre>
  
  <p>When we Click above Hyper link one <code>Popup will open and show his Details</code></p>
  
  <p>And my Controller class i'm mapping action to hyperlink click event.</p>
  
  <pre><code>@RequestMapping(value = "search", method = RequestMethod.POST)
  public String header(SearchForm form, BindingResult result,
              Model model) throws Exception {
      -----
      -----
      model.addAttribute("SEARCH_RESULT", form);
      return "search";
  }
  </code></pre>
  
  <p>So this <code>search.jsp</code> should display on above popup window.</p>
  
  <p>In this Purpose i'm doing like this..</p>
  
  <p>Prepare ajax form submitting , i'm writing success event so popup.</p>
  
  <pre><code>function ajaxFormSubmit(options) {
  
  $.ajax({
      url : options.action,
      success : function(data, textStatus, jqXHR) {
              $('#' + options.successElem).html(data);
          }
  
      },
      error : function(jqXHR, textStatus, errorThrown) {
          apprise(textStatus +" " + errorThrown);
      }
  });
  }
  </code></pre>
  
  <p>But this is not working. so is this procedure correct or not ?</p>
  
  <p>Other wise tell me how to Open popup window in Spring ?</p>