+

Search Tips   |   Advanced Search

view.jsp

 

<%@ page session="true" contentType="text/html" %>
<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI" %>
<portletAPI:init/>
<%
  portletRequest.setAttribute("UNIQUE_ID", portletResponse.encodeNamespace((portletRequest.getUser() == null)? "" : "anonymous"));
  java.lang.StringBuffer sb = new java.lang.StringBuffer();
  
  // Build paging list from all WCM_Page.<MenuID>=<PageNum> parameters
  java.util.Map params = portletRequest.getParameterMap();
  
  for(java.util.Iterator i = params.keySet().iterator();i.hasNext();)
  {
    String key = (String) i.next();
    int k = key.indexOf("WCM_Page.");
    
    if(k >= 0)
    {
      // Store just menu IDs and page numbers
      sb.append(key.substring(k+9));
      sb.append("=");
      sb.append(params.get(key));
      sb.append(";");
    }
  }
  
  // If we have any pagers, add them to cache id
  if(sb.length() > 0)
  {
    portletRequest.setAttribute("PAGE", sb.toString());
  }
%>

<jsp:include page="view-original.jsp"/>