title: Can Spring MVC controller set the URL to be shown in browser?
body: <p>We have a Spring MVC Controller method which servers the url pattern /hello/{userName} . </p>
  
  <pre><code>@RequestMapping("/hello/{userName}")  
      public ModelAndView helloWorld(@PathVariable("userName") String productId) {  
          String message = "HELLO"+userName;  
          return new ModelAndView("hellopage", "message", message);  
      }  
  </code></pre>
  
  <p>Here when we request /hello/Tom ,hellopage.html will be servered with URL in the browser <a href="http://localhost:8080/myApp/hello/Tom" rel="nofollow">http://localhost:8080/myApp/hello/Tom</a></p>
  
  <p>We would need the URL to be <a href="http://localhost:8080/myApp/Tom" rel="nofollow">http://localhost:8080/myApp/Tom</a> .Is there any way I can set the URL to be shown in the browser when returning from the controller.</p>