P.S. In case it's not clear, one reason all the Monitoring Tools pages in wtcore/jsp/jmx are implements as JSPs with inline Java scriptlets is so that all the source is present for anyone to see.
There are well documented downsides to this approach, of course, but this is an upside -- you can see all the Java calls necessary to do the same thing yourself, whether or not you're in a JSP.