title: Redirection of pages in spring mvc
body: <p>I have a product page which displays all products 
  <code>home.jsp</code>:</p>
  
  <pre><code>&lt;a class="campaign" href="page/dynamic/product1"&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>@RequestMapping(value="/page/dynamic/{pagename}")
  public ModelAndView loadProductPage(ModelMap model, @PathVariable("pagename") String pagename) {
      model.addAttribute("productname",pagename);
      return new ModelAndView("products/"+pagename+"/"+pagename);
  }
  </code></pre>
  
  <p>It is getting redirected to the product1 page. Product1 page has a link called features
  product1.jsp</p>
  
  <pre><code>&lt;li&gt;&lt;a href="/page/loadpage/product1/features"&gt;Features&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>@RequestMapping(value="/page/loadpage/{choosedProduct}/{linkChoosed}")
  public ModelAndView loadProductMenuPages(ModelMap model, @PathVariable("linkChoosed") String linkChoosed, @PathVariable("choosedProduct") String choosedProduct) {
      System.out.println("Loading links here");
      System.out.println("cones gere");
      System.out.println("Product Choosed" + choosedProduct);
      System.out.println("Link Choosed" + linkChoosed);
      return new ModelAndView("products/"+choosedProduct+"/"+linkChoosed);
  }
  </code></pre>
  
  <p>It is not getting redirected to the "features page", but throws an error:</p>
  
  <blockquote>
    <p>HTTP Status 404 - /controller/WEB-INF/views/products/loadpage/loadpage.jsp</p>
  </blockquote>
  
  <p>What should I need to do to get redirected to features page?</p>
  
  <p><strong>EDIT:</strong>
  Adding <code>servlet-context.xml</code> informed in comment:</p>
  
  <pre><code>&lt;beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;beans:property name="prefix" value="/WEB-INF/views/" /&gt;
      &lt;beans:property name="suffix" value=".jsp" /&gt;
  &lt;/beans:bean&gt;
  </code></pre>