title: Angular JS + Java Servlet Route Issue
body: <p>I have an application built using Angular JS.<br>
  It has 3 views say (A, B and C).<br>
  This is how I have configured the route params.</p>
  
  <pre><code>.config(function ($routeProvider){
  $routeProvider
  .when('/',{
      controller:'aController',
      templateUrl: 'jsps/a.jsp'
  })
  .when('/b',{
      controller:'bController',
      templateUrl: 'jsps/b.jsp'
  })
  .when('/c',{
      controller:'cController',
      templateUrl: 'jsps/c.jsp'
  })
  .otherwise({redirectTo:'/'});
  </code></pre>
  
  <p>});   </p>
  
  <p>All three views have <strong>Login</strong> Link. Clicking on LogIn will redirect the user to a different page within my application.    </p>
  
  <p>The Login is a form, which calls the LoginServlet and on successful authentication I am redirecting the user to my application.</p>
  
  <pre><code>RequestDispatcher rd = request.getRequestDispatcher("index.jsp");
  rd.include(request,response);
  </code></pre>
  
  <p>I also tried with rd.forward(request, response)</p>
  
  <p>index.jsp is the default page which has ng-view.<br>
  So by default always view A is loaded after authentication.   </p>
  
  <p>Now my situation is when the user is requesting login from B or C, he has to be redirected to that view after authentication.</p>
  
  <p>I have tried <strong>request.getRequestDispatcher("index.jsp#/B");</strong><br>
  But this doesn't work.  </p>
  
  <p>Any suggestions on how this can be achieved?</p>