1234567891011121314151617181920212223242526272829303132 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ page language="java"
- import="java.util.ArrayList,
- com.sysmodel.collectmodel.xmlmodel.impl.FormCollectionImpl,
- com.sysmodel.collectmodel.xmlmodel.impl.PageRootImpl"%>
- <%
- String pageid = request.getParameter("pageid") == null ? "" : request.getParameter("pageid");
- request.setCharacterEncoding("utf-8");
- FormCollectionImpl FormCollect = null;
- if(session.getAttribute("FormCollect"+pageid) == null){
- return;
- } else {
- FormCollect = (FormCollectionImpl)session.getAttribute("FormCollect"+pageid);
- PageRootImpl PageRootImpl=(PageRootImpl)FormCollect.getPageRoot();
- ArrayList actions = FormCollect.getPageRoot().getAllActions();
- ArrayList newActions = new ArrayList();
- for (int i = 0 ; i < actions.size() ; i++) {
- String type = request.getParameter(""+i);
- newActions.add( FormCollect.getPageRoot().getActionByType(type));
- }
- PageRootImpl.setAlAction(newActions);
- FormCollect.setPageRoot(PageRootImpl);
- session.setAttribute("FormCollect"+pageid,FormCollect);
- %>
- <script type="text/javascript">
- var url = window.opener.location.href;
- url = url.replace("sessionReload=true","sessionReload=false");
- window.opener.location.replace(url);
- window.close();
- </script>
- <%}%>
|