<%! String[] selElts=new String[100]; %>
<a href="myPage.jsp" onclick="selElts = tree2.getAllChecked()">Get list of checked</a>
the values are returned from a javascript function. now, how could the print the array values in the same jsp page?