0

他の JSP を含む JSP が 1 つあります。

メイン jsp:

        <% java.util.ArrayList <String> subJspName = (java.util.ArrayList <String>)(request.getSession().getAttribute("subJspName"));
        for (int jspIdx=0; jspIdx<subJspName.size(); jspIdx++) 
        {%>
            <jsp:include page='<%= subJspName.get(jspIdx) %>' />
            <tr>
                <td>&nbsp;</td>
            </tr>
        <%} %>              

その他のサブ JSP:

<layout:pager maxPageItems="5" width="100%"
                                sessionPagerId="currentPageZERO"> <!-- in the second sub-JSP, it will be currentPageONE -->
                                <logic:notEmpty
                                    name="tabellaGenericaForm"
                                    property="listaLogAccordoVec[0]"> <!-- in the second sub-JSP, it will be listaLogAccordoVec[1] -->
                                    <layout:collection
                                        name="tabellaGenericaForm"
                                        property="listaLogAccordoVec[0]" id="elemento"
                                        width="100%" styleClass="LISTA" styleClass2="LISTA2">

                                        <layout:collectionItem title="form.useragg"
                                            property="useragg" sortable="true" width="10%">
                                            <bean:write name="elemento" property="useragg" />
                                        </layout:collectionItem>                                         
                                    </layout:collection>


                </logic:notEmpty>
            </layout:pager>

サブ JSP を 1 つだけ表示すると、ページャーはすべてのサブ JSP に対して正常に動作します (2 番目のページ ボタンをクリックすると動作します)。同じページにさらにサブ JSP を表示すると、機能する唯一のページャーは最初のサブ JSP (上部の JSP) のページャーであり、たとえば最初のサブ JSP のボタン ページ 2 をクリックすると、すべてのサブ JSP がページ 2 に移動します (最初のサブ JSP だけではなく)。

どうすればこれを修正できますか? スクリーンショット

ここで html が生成されます (少しクリーンアップしたので読みやすくなり、3 つのテーブルに関連する部分だけが残りました)。

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>

    <tr>
        <td bgcolor="#eaf3fa" colspan="8" class="testoGrassetto2"
            style="text-align: center">Dati anagrafici dello straniero</td>
    </tr>
    <tr>
        <td valign="top">


            <div style="width: 100%; overflow-x: auto;">
                <table cellspacing="0" cellpadding="0" border="0" align="CENTER"
                    width="100%" class="LISTA">
                    <tr>
                        <td valign="top"><table cellspacing="1" cellpadding="1"
                                border="0" width="100%">

                                <tr valign="top">
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=useragg&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>User agg.</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=dataagg&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Data agg.</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=operazione&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Operaz.</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=codicefiscale&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Codice fiscale</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=cognome&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Cognome</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=nome&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Nome</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=sesso&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Sesso</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=statocivile&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Stato civile</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=datanascita&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Data di nascita</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=descrizionenazionenascita&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Nazione di nascita</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=descittanascita&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Città di nascita</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=descrizionecittadinanza&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Cittadinanza di nascita</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=idrichiestaali&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>ID richiesta ALI</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=utenteali&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Utente ALI</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="25%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=passwordali&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Password ALI</td>
                                            </tr>
                                        </table>
                                    </th>
                                </tr>

                                <!-- HERE THERE'S THE DATAS, I HIDE THEM -->

                            </table>
                        </td>
                    </tr>
                </table>
            </div>
            <table border="0" cellspacing="1" cellpadding="1" width="100%"
                id="pager1380269837677">
                <tr>
                    <td width="50%" style="text-align: right"></td>
                    <td>1&nbsp;<a
                        href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=&amp;layoutCollectionState=0&pagerPage=1&pagerSessionId=currentPageZERO">2</a>&nbsp;</td>
                    <td width="50%" style="text-align: left"><a
                        href="/AccordoIntegrazione/sort.do?layoutCollection=0&amp;layoutCollectionProperty=&amp;layoutCollectionState=0&pagerPage=1&pagerSessionId=currentPageZERO">&gt;&gt;</a>
                    </td>
                </tr>
            </table></td>
    </tr>

</body>
</html>
<tr>
    <td>&nbsp;</td>
</tr>








<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>

    <tr>
        <td bgcolor="#eaf3fa" colspan="8" class="testoGrassetto2"
            style="text-align: center">Dati di recapito</td>
    </tr>
    <tr>
        <td valign="top">


            <div style="width: 100%; overflow-x: auto;">
                <table cellspacing="0" cellpadding="0" border="0" align="CENTER"
                    width="100%" class="LISTA">
                    <tr>
                        <td valign="top"><table cellspacing="1" cellpadding="1"
                                border="0" width="100%">
                                <tr valign="top">
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=useragg&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>User agg.</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=dataagg&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Data agg.</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=operazione&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Operaz.</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=comuneresidenza&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Comune di residenza</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=desprovinciaresidenza&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Provincia di residenza</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=indirizzoresidenza&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Indirizzo di residenza</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=numerocivicoresidenza&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Civico di residenza</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=capresidenza&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>CAP</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=telefono&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Telefono</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=email&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Email</td>
                                            </tr>
                                        </table>
                                    </th>
                                </tr>

                                <!-- HERE THERE'S THE DATAS, I HIDE THEM -->

                            </table>
                        </td>
                    </tr>
                </table>
            </div>
            <table border="0" cellspacing="1" cellpadding="1" width="100%"
                id="pager1380269837836">
                <tr>
                    <td width="50%" style="text-align: right"></td>
                    <td>1&nbsp;<a
                        href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=&amp;layoutCollectionState=0&pagerPage=1&pagerSessionId=currentPageONE">2</a>&nbsp;</td>
                    <td width="50%" style="text-align: left"><a
                        href="/AccordoIntegrazione/sort.do?layoutCollection=1&amp;layoutCollectionProperty=&amp;layoutCollectionState=0&pagerPage=1&pagerSessionId=currentPageONE">&gt;&gt;</a>
                    </td>
                </tr>
            </table></td>
    </tr>

</body>
</html>
<tr>
    <td>&nbsp;</td>
</tr>








<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>

    <tr>
        <td bgcolor="#eaf3fa" colspan="8" class="testoGrassetto2"
            style="text-align: center">Dati dei documenti e del permesso di
            soggiorno</td>
    </tr>
    <tr>
        <td valign="top">


            <div style="width: 100%; overflow-x: auto;">
                <table cellspacing="0" cellpadding="0" border="0" align="CENTER"
                    width="100%" class="LISTA">
                    <tr>
                        <td valign="top"><table cellspacing="1" cellpadding="1"
                                border="0" width="100%">

                                <tr valign="top">
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=useragg&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>User agg.</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=dataagg&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Data agg.</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=operazione&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Operaz.</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=destipodocumento&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Tipo documento</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=numerodocumento&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Numero documento</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=rilasciatoda&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Rilasciato da</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=datarilasciodocumento&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Data rilascio</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=datascadenzadocumento&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>data scadenza</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=duratapermessosoggiorno&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Durata permesso di soggiorno</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="15%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=tiporichiestapermessosoggiorno&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Tipo richiesta permesso di soggiorno</td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="LISTA" width="10%"><table border="0"
                                            width="100%">
                                            <tr>
                                                <td><a
                                                    href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=desprovinciaprefpermesso&amp;layoutCollectionState=0"><img
                                                        src="/AccordoIntegrazione/config/sort.gif" border="0"
                                                        alt="sort">
                                                </a>
                                                </td>
                                                <td>Provincia pref. permesso</td>
                                            </tr>
                                        </table>
                                    </th>
                                </tr>

                                <!-- HERE THERE'S THE DATAS, I HIDE THEM -->

                            </table>
                        </td>
                    </tr>
                </table>
            </div>
            <table border="0" cellspacing="1" cellpadding="1" width="100%"
                id="pager1380269837911">
                <tr>
                    <td width="50%" style="text-align: right"></td>
                    <td>1&nbsp;<a
                        href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=&amp;layoutCollectionState=0&pagerPage=1&pagerSessionId=currentPageTWO">2</a>&nbsp;</td>
                    <td width="50%" style="text-align: left"><a
                        href="/AccordoIntegrazione/sort.do?layoutCollection=2&amp;layoutCollectionProperty=&amp;layoutCollectionState=0&pagerPage=1&pagerSessionId=currentPageTWO">&gt;&gt;</a>
                    </td>
                </tr>
            </table></td>
    </tr>

</body>
</html>
4

2 に答える 2

0

使用する

<% java.util.ArrayList <String> subJspName = (java.util.ArrayList <String>)(request.getSession().getAttribute("subJspName"));
int i=0;
for (int jspIdx=0; jspIdx<subJspName.size(); jspIdx++)
{%>
  <jsp:include page='<%= subJspName.get(i) %>' />
  <tr>
    <td>&nbsp;</td>
  </tr>
<%
i =  i + 1;
} %> 
于 2013-09-25T14:22:35.343 に答える
0

私はstruts1を使用しませんが、通常のグーグル、JavaScriptの知識、およびコードを見て、これはうまくいくと思います:

<layout:collection
                                        name="tabellaGenericaForm"
                                        property="listaLogAccordoVec[0]" id="elemento"
                                        width="100%" styleClass="LISTA" styleClass2="LISTA2">

上記のコードは、ページング要素 (1、2 前、次) の表示を担当していると思います。このタグの id フィールド/属性があることがわかります。

異なるサブ jsps で id タグに異なる値を使用するだけで、正常に動作するはずです。

于 2013-09-25T20:52:49.953 に答える