<%@ page contentType="text/xml; charset=UTF-8" language="java"%> <%@ page import ="com.sysmodel.datamodel.xmlmodel.ModelFactory, com.sysmodel.datamodel.xmlmodel.able.SysModel, com.sysmodel.datamodel.xmlmodel.impl.MdpAttributeImpl, com.sysmodel.datamodel.xmlmodel.able.MdpClass, java.util.*" %> <% SysModel sysmodel = ModelFactory.getSysmodel(); String classid = request.getParameter("classid") == null ? "0" : request.getParameter("classid"); MdpClass MdpClass = sysmodel.getMdpClassByClassID(Integer.parseInt(classid)); ArrayList Attributes = (ArrayList)MdpClass.getAllMdpAttributes(); out.print(""); for (int i = 0; i < Attributes.size(); i++) { MdpAttributeImpl MdpAttributeImpl = (MdpAttributeImpl) Attributes.get(i); out.print(""+MdpAttributeImpl.getName()+""); out.print(""+MdpAttributeImpl.getDescription()+""); } out.print(""); %>