%@ page pageEncoding="UTF-8"%> <%@ page contentType="text/html; charset=UTF-8" language="java" %> <%@ page language="java" import="java.util.ArrayList, com.sysmodel.XFormFactory, com.sysmodel.XFormModel, com.sysmodel.collectmodel.xmlmodel.able.FormCollection, com.sysmodel.XFormModelImpl, com.sysmodel.collectmodel.xmlmodel.able.*, com.sysmodel.collectmodel.xmlmodel.impl.*"%> <% String pageid = request.getParameter("pagid") == null ? "" : request.getParameter("pagid"); if(pageid.equals("")) return; String sessionReload = request.getParameter("sessionReload") == null ? "false" : request.getParameter("sessionReload"); FormCollection FormCollectionClone = null; if(session.getAttribute("FormCollect"+pageid) == null || sessionReload.equals("true")){ if(!pageid.equals("")){ FormCollection FormCollection0bj = XFormFactory.getXFormModel().getFormCollection(pageid); FormCollectionClone = (FormCollection)FormCollection0bj.clone(); session.setAttribute("FormCollect"+pageid,FormCollection0bj.clone()); } else{ return; } } else { FormCollectionClone = (FormCollection)session.getAttribute("FormCollect"+pageid); } %>