%@ page pageEncoding="UTF-8"%> <%@ page contentType="text/html; charset=UTF-8" language="java" %> <%@ page import ="java.util.*"%> <%@ page language="java" import="com.sysmodel.datamodel.xmlmodel.ModelFactory, com.sysmodel.datamodel.xmlmodel.able.SysModel, com.sysmodel.datamodel.xmlmodel.impl.MdpClassImpl, com.sysmodel.datamodel.xmlmodel.impl.MdpDataSourceImpl, com.sysmodel.datamodel.xmlmodel.impl.MdpModuleImpl"%> <% String classid = request.getParameter("classid") == null ? "0" : request.getParameter("classid"); String validate = ""; String dataSource = ""; String description = ""; String name = ""; String exist = ""; String type = ""; String catche = ""; int iclassid = Integer.parseInt(classid); MdpClassImpl MdpClass = null; SysModel sysmodel = ModelFactory.getSysmodel(); String action = ""; if(classid.equals("0")){ action = "save"; type = request.getParameter("type") == null ? "" : request.getParameter("type"); }else{ MdpClass = (MdpClassImpl)sysmodel.getMdpClassByClassID(iclassid); action = "edit"; validate = new Boolean(MdpClass.isValidate()).toString(); dataSource = ""+ MdpClass.getDataSource(); description = MdpClass.getDescription(); name = MdpClass.getName(); exist = new Boolean(MdpClass.isExist()).toString(); type = MdpClass.getType(); catche = new Boolean(MdpClass.isCatche()).toString(); } %>