title: getting 404 error message while parsing request from 1 jsp file to other
body: <p>I am using spring MVC, while parsing request from 1 JSP file to other JSP file getting 404 error message</p>
  
  <blockquote>
    <p>"The requested resource is not available".</p>
  </blockquote>
  
  <pre><code>@Controller
  public class WelcomeController {
  
  @RequestMapping("/login.jsp")
  public ModelAndView helloWord() {
      ModelAndView model = new ModelAndView("login");
      model.addObject("msg", "AYM Registration Form");
  
      return model;
  }
  
  @RequestMapping(value="/success.jsp",method=RequestMethod.POST)
  public ModelAndView successMessage(@RequestParam Map&lt;String,String&gt; reqPar) {
  
      String name = reqPar.get("name");
      String age = reqPar.get("age");
      String gender = reqPar.get("gender");
  
      ModelAndView model1 = new ModelAndView("success");
      model1.addObject("msg", "You have successfully submitted your data..Pls find: Name="+name+"Age="+age+"gender="+gender);
  
      return model1;
  }
  }
  </code></pre>
  
  <p>login.jsp:</p>
  
  <pre><code>&lt;form action="success.jsp" method="POST"&gt;
  </code></pre>
  
  <p>spring-dispatcher-servlet.xml:</p>
  
  <pre><code>&lt;context:component-scan base-package="com.ClassesManagement.Controllers" /&gt;
  
  &lt;bean id="viewResolver"
      class="org.springframework.web.servlet.view.InternalResourceViewResolver" &gt;
      &lt;property name="prefix"&gt;
          &lt;value&gt;/WEB-INF/views/&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="suffix"&gt;
          &lt;value&gt;.jsp&lt;/value&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Error Message:</p>
  
  <pre><code>HTTP Status 404 - /FirstMVCProject/success.jsp
  type Status report
  message /FirstMVCProject/success.jsp
  description The requested resource is not available.
  </code></pre>