JAVA way to count how many getters in bean that are not null
<p>Ok I have a bean list and I can do <code>beans.size()</code> to get how many rows I got.....but I need to dynamically know how many columns of data I have before I send to the jsp.</p>

<p>The maximum # of getters I have in the bean is 10....</p>

<p>Is there a way to do this??</p>

<p>Would I have to do a loop on the list and do a <code>If</code> check on all the getters and increment?</p>
