title: spring mvc application to navigate flow from controller to jsp or servlet of another application
body: <p>I am using spring mvc application. I want to redirect from controller or jsp to my second application that was developed in plain servlet and jsps.</p>
  
  <p>How can I navigate flow from one apps servlet/jsps  to another apps jsp.</p>
  
  <p>I have used following lines in my controller to navigate:</p>
  
  <p><strong>First:</strong></p>
  
  <pre><code>return new ModelAndView("redirect:/http://localhost:9090/MarathiInput/test.jsp");
  </code></pre>
  
  <p><strong>Second:</strong></p>
  
  <pre><code>response.sendRedirect("http://localhost:9090/MarathiInput/test.jsp");
  </code></pre>
  
  <p>Currently my controller is :</p>
  
  <pre><code>@RequestMapping(value = "/transferCertificate", method = RequestMethod.GET)
  public ModelAndView get(ModelMap map ,HttpServletResponse response) {
      response.sendRedirect("localhost:9090/MarathiInput/test.jsp");
  }
  </code></pre>
  
  <p>and in my jsp i am calling :</p>
  
  <pre><code>&lt;a href="/transferCertificate" class="sis_nav_link"&gt;Generate TC&lt;/a&gt; this link
  </code></pre>