<%
/*== Copyright Notice ================================================
* This file contains proprietary information of Appian Corporation.
* Copying or reproduction without prior written approval is prohibited.
== Copyright (c) 2003 ===============================================*/
%>
<%/*
Page: frame_template_default.jsp
Description: template for framed applications
*/%>
<%@ include file="/portal/include/include_java.jsp" %>
<%@ page import="com.appiancorp.security.util.StringSecurityUtils"%>
<%
if(request.getAttribute("$p")!=null){
session.setAttribute("currentPageId",(String)request.getAttribute("$p"));
session.setAttribute("currentQString",(String)request.getQueryString());
}
%>
<%
String bottomFrameUrl = (String) pageContext.findAttribute("bottomFrame");
StringBuffer querystring = new StringBuffer();
String paramName = null;
boolean isFirst = true;
if (StringSecurityUtils.testHref(bottomFrameUrl)) {
for (java.util.Enumeration e = request.getParameterNames() ; e.hasMoreElements() ;) {
paramName = (String)e.nextElement();
if (paramName.equals("$p")) continue;
if (isFirst) { querystring.append("?"); isFirst=false; }
else querystring.append("&");
querystring.append(java.net.URLEncoder.encode(paramName));
querystring.append("=");
querystring.append(java.net.URLEncoder.encode(request.getParameter(paramName)));
}
} else {
bottomFrameUrl = "/portal/index.jsp";
}
pageContext.setAttribute("bottomFrame", bottomFrameUrl);
pageContext.setAttribute("querystring", querystring.toString());
%>
<%@ include file="/portal/include/frame_check.jsp" %>