%@ 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("");
for (int i = 0; i < constants.size(); i++) {
MdpConstant MdpConstant = (MdpConstant) constants.get(i);
out.print(""+MdpConstant.getCodeName()+"");
out.print(""+MdpConstant.getDescription()+"");
}
out.print("");
%>