<%@ page pageEncoding="UTF-8"%> <%@ page contentType="text/html; charset=UTF-8" language="java" %> <%@ page language="java" import="com.sysmodel.XFormFactory, com.sysmodel.listmodel.xmlmodel.impl.FormListImpl, com.sysmodel.listmodel.xmlmanager.xmlobjdll.ListModeldllable, com.sysmodel.listmodel.xmlmanager.xmlobjdll.ListModeldllImpl"%> <% String listid = request.getParameter("listid") == null ? "0" : request.getParameter("listid"); FormListImpl FormList =(FormListImpl)XFormFactory.getXFormModel().getFormList(listid); FormListImpl FormListClone = (FormListImpl)FormList.clone(); String action = request.getParameter("action") == null ? "" : request.getParameter("action"); String refreshTime = request.getParameter("refreshTime") == null ? "" : request.getParameter("refreshTime"); String listWidth = request.getParameter("listWidth") == null ? "" : request.getParameter("listWidth"); String type = request.getParameter("type") == null ? " " : request.getParameter("type"); String description = request.getParameter("description") == null ? "" : request.getParameter("description"); FormListClone.setRefreshTime(refreshTime); FormListClone.setListWidth(listWidth); FormListClone.setType(type); FormListClone.setDescription(description); ListModeldllable ListModeldll = new ListModeldllImpl(); if (action.equals("del")) { ListModeldll.deleteFormList(FormList); response.sendRedirect("list_exc.jsp?type="+FormList.getType()+"&refreshNode=true"); } else{ ListModeldll.updateFormList(FormListClone); response.sendRedirect("list.jsp?type="+type+"&refreshNode=true"); } %>