<%-- WARNING: This is strictly a JSP include file which contains method and field declarations. It cannot be executed on its own. --%> <%-- util.jsp Written August 2005 by Chris Schultz Contains methods to get a class's name (including array types) and variable values, including Array values converted to comma-separated lists. --%> <%! private String getClassName(Class clazz) { if(!clazz.isArray()) return clazz.getName(); return (getClassName(clazz.getComponentType()) + "[]"); } private String getClassName(Object value) { if(null == value) return ""; return getClassName(value.getClass()); } public String getValue(Object value) { if(null == value) return "null"; Class clazz = value.getClass(); if(!clazz.isArray()) return String.valueOf(value); StringBuffer sb = new StringBuffer("["); int length = Array.getLength(value); for(int i=0; i