title: angular js benefits over jsp view
body: <p>I wonder why people are using angularjs to check things like existing username or form registration when it can be done simply by a presentation layer called jsp in combination with servlet as backend code.</p>
  
  <p>For example, angular makes ajax calls to java servlet where servlet fetches username from DB and shown back to jsp view. All this can be achieved with jsp and servlet instead of adding one more layer of angular using separate custom directives and so on which adds to more code.</p>
  
  <p>I am trying to figure out advantages of angular over jsp view layer. Things like form registration can be done with jsp instead of angular.</p>
  
  <p>Today, I spent almost 8 hours writing a program to check existing username using angular and java servlet being a back end. I am not sure if its a bug in angular or jsp where <code>request.getParameter("Username")</code> returns null in servlet. The parameter is passed from angular from using <code>$http</code> post ajax call.</p>
  
  <p>Finally I had to use some inputstream to read the value passed from angular form and return a response. Who can imagine this sort of issue?</p>
  
  <p>Finally, my question is what makes angular better than jsp. Is there any other back end sever better to be used with angular (may be nodejs?) than tomcat usually used along with java?</p>