title: Can I use HTML as front end with Spring MVC
body: <pre><code>I want to build an application using Spring MVC with front end as HTML, CSS and Jquery.
  </code></pre>
  
  <p>I want to know if this is possible. Spring MVC has Model object that can be accessed in the UI to access the server side data.</p>
  
  <p>I have following in my controller</p>
  
  <pre><code>@Override
  protected ModelAndView handleRequestInternal(HttpServletRequest request,
      HttpServletResponse response) throws Exception {
  
      ModelAndView model = new ModelAndView("HelloWorldPage");
      model.addObject("msg", "hello world");
  
      return model;
  }
  </code></pre>
  
  <p>My HTML code will be as follows</p>
  
  <pre><code>  &lt;html xmlns="http://www.w3.org/1999/xhtml"   xmlns:c="http://java.sun.com/jstl/core"&gt;
    &lt;body&gt;
  
     &lt;c:out value="${msg}"/&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>