title: Spring 3.0 : How redirect to same page
body: <p>In Spring MVC, I have a search form. If user submit search form, result should show in same page. 
  It is redirecting to same page But I'm not getting attributes in JSP from controller.</p>
  
  <p><strong>qSearch.jsp</strong></p>
  
  <pre><code>&lt;form:form name="quickSearchForm" id="searchFormId" method="POST" action="./searchQuick.html" modelAttribute="searchForm" onsubmit="return validateForm()"&gt;
              &lt;table&gt;
                  &lt;tr&gt;
                      &lt;th&gt;Change/Defect ID&lt;/th&gt;&lt;td&gt;&lt;form:input type="text" name="identifier" path="identifier"/&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
              &lt;div class="icons"&gt;
                  &lt;span&gt;&lt;button style="left:0px" type="reset" name="clear" style="border-radius: 25px;"&gt;CLEAR&lt;/button&gt;&lt;/span&gt;
                  &lt;span&gt;&lt;button style="right:0px" type="submit" name="submit" style="border-radius: 25px;" &gt;SEARCH&lt;/button&gt;&lt;/span&gt;
              &lt;/div&gt;
          &lt;/form:form&gt;
  
                      &lt;hr&gt;
              &lt;div&gt;
                  &lt;c:if test="${empty SEARCH_RESULTS_KEY}"&gt;
                  &lt;table style="border-collapse: collapse;" border="1" class="showResults"&gt;
                          &lt;tr&gt;
                              &lt;td colspan="7"&gt;No Results found&lt;/td&gt;
                          &lt;/tr&gt;
                  &lt;/table&gt;        
                      &lt;/c:if&gt;
              &lt;c:if test="${! empty SEARCH_RESULTS_KEY}"&gt;
                  &lt;table style="border-collapse: collapse;" border="1" class="showResults"&gt;
                          &lt;tr&gt;
                              &lt;td colspan="7"&gt;Result found&lt;/td&gt;
                          &lt;/tr&gt;
                  &lt;/table&gt; 
             &lt;/c:if&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>@RequestMapping(value="/qSearch", method = RequestMethod.GET)  
  public String getQuickSearchmodel(Model model) {
      System.out.println("Welcome to search tool\n");
      ArchivalIssue archivalIssue=new ArchivalIssue();
      model.addAttribute("searchForm", archivalIssue);
      return "quickSearchPage";   
   }
  
  @RequestMapping(value = "/searchQuick", method = RequestMethod.POST)  
  public ModelAndView getAllArchivalIssues(HttpServletRequest request){
  
      String identifier = request.getParameter("identifier"); 
      List&lt;ArchivalIssue&gt; archivalIssue = archivalIssueService.getAllArchivalIssue(identifier);
  
          ModelAndView mav = new ModelAndView("redirect:/qSearch");                           //Add model to display results  
          mav.addObject("SEARCH_RESULTS_KEY", archivalIssue);                         //Add result object to model
          return mav; 
  
  }
  </code></pre>
  
  <p>please someone help me, how to get result in JSP. I'm always getting no result found.</p>