12345678910111213141516171819202122232425 |
- <%@ page contentType="text/html; charset=UTF-8" language="java"%>
- <%@ page
- import ="com.sysmodel.datamodel.xmlmodel.ModelFactory,
- com.sysmodel.datamodel.xmlmodel.able.SysModel,
- com.sysmodel.datamodel.xmlmodel.able.*,
- java.util.*"
- %>
- <%
- SysModel sysmodel = ModelFactory.getSysmodel();
- ArrayList constants = null;
- String type= request.getParameter("type") == null ? "" : request.getParameter("type");
- if(type.equals("")){
- constants = sysmodel.getMdpConstants();
- } else {
- constants = sysmodel.getMdpConstantByType(type);
- }
- out.print("<root>");
- for (int i = 0; i < constants.size(); i++) {
- MdpConstant MdpConstant = (MdpConstant) constants.get(i);
- out.print("<classid>"+MdpConstant.getCodeName()+"</classid>");
- out.print("<description>"+MdpConstant.getDescription()+"</description>");
- }
- out.print("</root>");
- %>
|