<%@ include file="/portal/include/include_java.jsp" %>
<%@ page import="com.appiancorp.security.util.StringSecurityUtils"%>
<%@ page import="com.appiancorp.ap2.PageFilter"%>
<%/*
PageFilter.forceSetLastPage(request, (String)request.getServletPath(), (String)request.getQueryString());
*/%>
<%
String bottomFrameUrl = (String) pageContext.findAttribute("bottomFrame");
StringBuffer querystring = new StringBuffer();
if (StringSecurityUtils.testHref(bottomFrameUrl)) {
String paramName = null;
boolean isFirst = true;
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)));
}
java.util.Map extraParameters = (java.util.Map)request.getAttribute("extraParameters");
for (java.util.Iterator i = extraParameters.keySet().iterator() ; i.hasNext() ;) {
paramName = (String)i.next();
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((String)extraParameters.get(paramName)));
}
} else {
bottomFrameUrl = "/portal/index.jsp";
}
pageContext.setAttribute("bottomFrame", bottomFrameUrl);
pageContext.setAttribute("querystring", querystring.toString());
%>
<%@ include file="/portal/include/frame_check.jsp" %>