title: What is the beans: tag in the Spring template app?
body: <p>I just created a Spring template app using the Spring Source IDE, and it defined the ViewResolver like this in servlet-context.xml:</p>
  
  <pre><code>&lt;beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;beans:property name="prefix" value="/WEB-INF/views/" /&gt;
      &lt;beans:property name="suffix" value=".jsp" /&gt;
  &lt;/beans:bean&gt;
  </code></pre>
  
  <p>I'm unfamiliar with this configuration, and I usually see the ViewResolver defined this way:</p>
  
  <pre><code>&lt;bean id="viewResolver"
        class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
      &lt;property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/&gt;
      &lt;property name="prefix" value="/WEB-INF/jsp/"/&gt;
      &lt;property name="suffix" value=".jsp"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Can someone explain the difference?</p>