apzl_leasing/WebContent/Frame/page/control/DestroyCompAction.jsp
2018-06-03 22:26:41 +08:00

29 lines
1.0 KiB
Plaintext

<%@page contentType="text/html; charset=GBK"%><%@
page buffer="64kb" errorPage="/Frame/page/control/ErrorPage.jsp"%><%@
page import="com.amarsoft.are.ARE"%><%@
page import="com.amarsoft.awe.RuntimeContext"%><%@
page import="com.amarsoft.awe.control.model.ComponentSession"
%><%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires",0);
try{
RuntimeContext CurARC= (RuntimeContext)session.getAttribute("CurARC");
if(CurARC != null) {
String sClientID = (String)request.getParameter("ToDestroyClientID");
String sTargetWindow = (String)request.getParameter("TargetWindow");
if(sClientID!=null && !"null".equals(sClientID)){
ComponentSession compSession = (ComponentSession)CurARC.getCompSession();
if (sTargetWindow!=null && !"null".equals(sTargetWindow)) {
compSession.lookUpAndDestroyChildByTarget(sClientID, sTargetWindow);
}
else {
compSession.lookUpAndDestroy(sClientID);
}
}
}
}catch(Exception e){
e.printStackTrace();
ARE.getLog().error(e.getMessage(),e);
}
%>