title: Diffrence Between 'class' and 'type' attribute in jsp
body: <p>In jsp I have found - </p>
  
  <pre><code>&lt;jsp:useBean id="user" class="com.test.UserDetails" /&gt;  
  </code></pre>
  
  <p>By which I mean (Please correct me If I am wrong) - if a <code>UserDetails</code>  instance is already exists then it will be assigned with an id <code>user</code> and if not exist then a new <code>UserDetails</code> object is created and will be assigned with the id <code>user</code>. </p>
  
  <p>But in some very rare case I have found the following <code>&lt;jsp:useBean&gt;</code> with <code>type</code> -  </p>
  
  <pre><code> &lt;jsp:useBean id="account" type="com.test.Account" /&gt;    
  </code></pre>
  
  <p>Now my questions are -  </p>
  
  <ol>
  <li>What the <code>type</code> do here?</li>
  <li>What is difference between the <code>type</code> and <code>class</code>? </li>
  </ol>
  
  <p>Thanks in advance. </p>