title: In JSP, how to identify the type of Object present in a List?
body: <p>Is it possible in JSP to get the type of Object in List, just like we do in Java</p>
  
  <pre><code>myDataBind.getResultsList().get(0).getClass();
  </code></pre>
  
  <p>or is it possible to achieve something like this:</p>
  
  <pre><code>if ( myDataBind.getResultsList().get(0) instanceOf MyClass ) {
    doThis;
  }
  </code></pre>
  
  <p>i don't prefer scriptlets, but if it is not possible to do without scriptlets then Please let me know even that solution too.</p>
  
  <ul>
  <li><em>assuming all objects in list are of same type.</em></li>
  </ul>