Ola galera tudo bem?
Seguinte eu estou com problemas de paginação
Vou mandar meu código jsp para v6 verem
No código tem os comentários ###inico pagina### e ### fim pagina ###, para vc6 se situarem no trecho onde quero paginar, a paginação será feita pela label ?Mapa Gerencial? que esse Objetivo Estratégico terá vários resultados dentro dele tipo ?Objetivo Estratégico? e ?Objetivo Gerencial?
obrigado
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ page import="gov.tcepe.sisplan.acao.Acao"%>
<%@ page import="gov.tcepe.sisplan.macrobjetivo.Macrobjetivo"%>
<%@ page import="gov.tcepe.sisplan.resultado.Resultado"%>
<%@ page import="gov.tcepe.sisplan.produto.produtoanual.ProdutoAnual"%>
<%@ page import="gov.tcepe.sisplan.produto.produtoanualresponsavel.ProdutoAnualResponsavel"%>
<%@ page import="gov.tcepe.sisplan.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>SISPLAN</title>
<!-- Metas do formulário -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Folhas de estilos -->
<link rel="STYLESHEET" href="<%=request.getContextPath()%>/util/estilo.css" type="text/css">
<!-- Bibliotecas js -->
<script src="js/biblioteca/funcoesGenericas.js"></script>
<script language="JavaScript" src="<%=request.getContextPath()%>/js/buscarProduto/listarProduto.js"></script>
</head>
<body>
<jsp:include page="../topo.jsp" flush="true" />
<form name="form1" id="idForm1" method="post" action="<%=request.getContextPath()%>/listarProdutoAction.do?saida=produto" onsubmit="return validar()">
<!-- Campos Hidden -->
<!-- Campos Hidden -->
<input type="hidden" name='codigoProduto' id='idCodigoProdutoAnual'>
<input type="hidden" name='macrobjetivo' id='idCodigoMacro'>
<input type="hidden" name='resultado' id='idCodigoResultado'>
<input type="hidden" name='acao' id='idCodigoAcao'>
<input type="hidden" name='tipoOperacao' id='idTipoOperacao'>
<input type="hidden" name='codigoAcao' value="0">
<table width="800" border="1" class="geralPlanejamento">
<tr>
<td>
<table width="650" border="1" align="center" class="geralPlanejamento">
<tr>
<td class="textTitulo">Resultado da Busca por Produtos</td>
</tr>
<logic:empty name="listaMacrobjetivos">
<tr><td>
<p><font color='RED' size="-2" face="Verdana,Arial">
Não há produtos a serem exibidos.
</font></p>
</td></tr>
</logic:empty>
<logic:notEmpty name="listaMacrobjetivos">
<tr>
<td> </td>
</tr>
######INICIO PAGINA######
<!-- Monta uma lista de macrobejtivos de seus objetos correspondentes INICIO-->
<logic:iterate id="macrobjetivo" name="listaMacrobjetivos" type="Macrobjetivo">
<!-- INICIO TABELA MACROBJETIVO-->
<!-- INICIO TABELA RESULTADO-->
<logic:iterate id="resultado" name="macrobjetivo" property="resultados" type="Resultado">
<tr>
<td class="textLabel">Mapa Gerencial</td>
</tr>
<tr>
<td class="conteudo"><bean:write name="resultado" property="numero" />-<bean:write name="resultado" property="descricao" /></td>
</tr>
<tr>
<td class="textLabel">Objetivo Estratégico</td>
</tr>
<logic:iterate id="macroObjetivo" name="resultado"
property="macroObjetivo">
<tr>
<td class="conteudo"><bean:write name="macroObjetivo"
property="numero" />-<bean:write name="macroObjetivo"
property="descricao" /></td>
</tr>
</logic:iterate>
<!-- INICIO TABELA ACAO-->
<logic:iterate id="acao" name="resultado" property="acoes" type="Acao">
<tr>
<td class="textLabel">Objetivo Gerencial</td>
</tr>
<tr>
<td class="conteudo"><bean:write name="acao" property="numero" />-<bean:write name="acao" property="descricao" /></td>
</tr>
<tr>
<td>
<br>
<!-- INICIO TABELA PRODUTO ANUAL-->
<table border="1" width="95%" align="center" class="dadosPlanejamento">
<tr>
<td class="textTitulo" colspan="5">Produtos Associados</td>
</tr>
<tr>
<td class="textLabel" width="10%">Número</td>
<td class="textLabel" width="30%">Descrição</td>
<td class="textLabel" width="10%">Pontuação</td>
<logic:equal name="isRealizar" value="S">
<td class="textLabel" width="20%">Informar realização</td>
</logic:equal>
<logic:notEqual name="isRealizar" value="S">
<td class="textLabel" width="10%">Segmentos responsáveis</td>
</logic:notEqual>
<td class="textLabel" width="20%">Opção</td>
</tr>
<logic:iterate id="produtoAnual" name="acao" property="produtosAnuais" type="ProdutoAnual">
<tr>
<td><bean:write name="produtoAnual" property="numero" /></td>
<td>
<a href="<%=request.getContextPath()%>/listarProdutoAction.do?saida=responsavel¯objetivo=<bean:write name="macrobjetivo" property="codigo" />&resultado=<bean:write name="resultado" property="codigo" />&acao=<bean:write name="acao" property="codigo" />&codigoProduto=<bean:write name="produtoAnual" property="codigo" />&pontuacaoAtual=<bean:write name='produtoAnual' property='resumoListagemProduto.pontuacaoTotal' />"><bean:write name="produtoAnual" property="descricao" /></a>
</td>
<td><bean:write name="produtoAnual" property="resumoListagemProduto.pontuacaoTotal" /></td>
<td>
<!-- INICIO TABELA PRODUTO ANUAL RESPONSAVEL -->
<table border="0" align="center" width="100%">
<logic:iterate id="produtoAnualResp" name="produtoAnual" property="produtosResponsavel" type="ProdutoAnualResponsavel">
<tr>
<logic:equal name="isRealizar" value="S">
<td><div style="cursor:hand;color: #0000FF;" onclick="criaJanela('<%=request.getContextPath()%>/informarRealizacaoAction.do?operacao=iniciar&codigoProdutoResponsavel=<bean:write name='produtoAnualResp' property='codigo' />&codigoProdutoAnual=<bean:write name='produtoAnual' property='codigo'/>&codigoSegResp=<bean:write name='produtoAnualResp' property='segmentoResponsavel.codigo' />', 800, 500)"><u><font color="blue"><bean:write name="produtoAnualResp" property="segmentoResponsavel.sigla"/> / <bean:write name="produtoAnualResp" property="segmentoExecutor.sigla"/></font><u></div></td>
</logic:equal>
<logic:notEqual name="isRealizar" value="S">
<td><bean:write name="produtoAnualResp" property="segmentoResponsavel.sigla"/> / <bean:write name="produtoAnualResp" property="segmentoExecutor.sigla"/></td>
</logic:notEqual>
</tr>
</logic:iterate>
</table>
<!-- FIM TABELA PRODUTO ANUAL RESPONSAVEL-->
</td>
<td>
<logic:equal name="isAcesso" value="S">
<div align="center"><a href="#" onClick="alterar('<bean:write name="produtoAnual" property="codigo"/>','<bean:write name="macrobjetivo" property="codigo" />','<bean:write name="resultado" property="codigo" />','<bean:write name="acao" property="codigo" />')">
<img src="imagens/edit.gif" alt="Alterar" width="23" height="18" border="0"></a>
<a href="#" onClick="excluir('<bean:write name="produtoAnual" property="codigo"/>','<bean:write name="produtoAnual" property="numero"/>',
'<bean:write name="produtoAnual" property="descricao"/>','<bean:write name="macrobjetivo" property="codigo" />','<bean:write name="resultado" property="codigo" />','<bean:write name="acao" property="codigo" />')">
<img src="imagens/delete.gif" alt="Remover" width="11" height="16" border="0"></a>
</div>
</logic:equal>
</td>
</tr>
</logic:iterate>
</table>
<!-- FIM TABELA PRODUTO ANUAL-->
<br>
</td>
</tr>
</logic:iterate>
<!-- FIM TABELA ACAO-->
</logic:iterate>
<!-- FIM TABELA RESULTADO-->
<!-- FIM TABELA MACROBJETIVO-->
</logic:iterate>
</logic:notEmpty>
######FIM PAGINA######
</table>
<br><center><input type="button" class="botao" value="Voltar" onClick="history.back();"></center><br>
</td>
</tr>
</table>
</form>
</body>
</html>