%@ page pageEncoding="UTF-8"%> <%@ page contentType="text/html; charset=UTF-8" language="java" %> <%@ page language="java" import="com.sysmodel.datamodel.xmlmodel.ModelFactory, com.sysmodel.datamodel.xmlmodel.able.SysModel, com.sysmodel.datamodel.xmlmodel.impl.MdpDataSourceImpl"%> <% String dataSourceid = request.getParameter("dataSourceid") == null ? "0" : request.getParameter("dataSourceid"); String description="",password="",DataBase="",url="",user="",jndi=""; int iDataSourceid = Integer.parseInt(dataSourceid); MdpDataSourceImpl MdpDataSource = null; SysModel sysmodel = ModelFactory.getSysmodel(); String action = ""; if(dataSourceid.equals("0")){ action = "save"; }else{ MdpDataSource = (MdpDataSourceImpl)sysmodel.getDataSourceByCode(iDataSourceid); action = "edit"; description=MdpDataSource.getDescription(); password=MdpDataSource.getPassword(); DataBase=MdpDataSource.getDataBase(); url=MdpDataSource.getURL(); user=MdpDataSource.getUser(); jndi=MdpDataSource.getJNDI(); } %>