<%-- Copyright 2004,2005 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --%> <%@ page language="java" %> <%@ page import="javax.portlet.RenderRequest" %> <%@ page import="java.util.Iterator" %> <%@ page import="java.util.Map" %> <%@ page import="java.util.Map.Entry" %> <%@ page import="java.util.Set" %> <%@ page import="javax.portlet.PortletPreferences" %> <%@ page import="javax.portlet.RenderResponse" %> <%@ page import="javax.portlet.PortletURL" %> <%@ page import="javax.portlet.PortletMode" %> <%@ page import="org.apache.pluto.portlet.admin.bean.PageTO" %> <%@ page import="org.apache.pluto.portlet.admin.PlutoAdminConstants" %> <%@ taglib uri='http://java.sun.com/portlet' prefix='portlet'%> <%@ taglib uri="http://portals.apache.org/pluto/admin" prefix="pluto-admin" %> <% PageTO ppage = (PageTO)renderRequest.getPortletSession().getAttribute(PlutoAdminConstants.PAGE_ATTR); Map pmap = (Map)renderRequest.getPortletSession().getAttribute(PlutoAdminConstants.PORTLET_MAP_ATTR); int rows = 0; int cols = 0; if (ppage != null) { rows = ppage.getRows(); cols = ppage.getCols(); } %>

Define page layout for <%= ppage.getTitle() %> portlet application

<% for (int j = 0; j <= cols ; j++) { %> <% if (j == 0) { %> <% } else { %> <% } %> <% }//end of loop %> <% //rows and cols are indexed starting at 1 for (int i = 0; i < rows ; i++) { %> <% for (int j = 0; j < cols ; j++) { %> <% if (j == 0) { %> <% } %> <% } //end of cols loop %> <%-- end of col --%> <% } //end of rows loop %>
Column <%= j %>
Row <%= Integer.toString(i + 1) %> Portlet:

Deploy War home