title: Spring MVC navigation
body: <p>I want to create simple navigation with Spring MVC, so far I got this:</p>
  
  <pre><code>@Controller
  @RequestMapping("/secure")
  public class NavigationController {
  
      @ModelAttribute("myPath/operation")
      public OperationForm getOperationForm() {
          return new OperationForm();
      }
  
      @RequestMapping("/myPath/operation")
      public String processOperationPage() {
          //Some logic goes here
          return "myPath/operation";
      }
  
      @ModelAttribute("myPath/configuration")
      public ConfigurationForm getConfigurationForm() {
          return new ConfigurationForm();
      }
  
      @RequestMapping("/myPath/configuration")
      public String processConfigurationPage(Map model) {
          return "myPath/configuration";
      }
  
  }
  </code></pre>
  
  <p>And in my JSP page:</p>
  
  <pre><code>&lt;a href="${pageContext.servletContext.contextPath}/secure/myPath/configuration.htm" class="parent"&gt;Configuration&lt;/a&gt;
  &lt;a href="${pageContext.servletContext.contextPath}/secure/myPath/operation.htm" class="parent"&gt;Operation&lt;/a&gt;
  </code></pre>
  
  <p>Is this solution for navigating through pages efficient? Could you suggest me some other ways to make the navigation? I am sure there is but I can't find anything on the internet. </p>