String[] attributeNames = new String[attributes.size()];
String[] objectNames = new String[attributes.size()];
String[] displayNames = new String[attributes.size()];
int i=0;
for(Iterator itr=attributes.iterator(); itr.hasNext();){
GraphAttributeConfig graphAttrConfig =
(GraphAttributeConfig)itr.next();
attributeNames[i] = graphAttrConfig.getAttribute();
displayNames[i] = graphAttrConfig.getDisplayName();
objectNames[i++] = graphAttrConfig.getMBean();
}
request.setAttribute("attributeNames", attributeNames);
request.setAttribute("objectNames",objectNames);
request.setAttribute("displayNames",displayNames);
}