By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,654 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,654 IT Pros & Developers. It's quick & easy.

Set parameter page in jsp

P: 3
Hello,

I have a problem regarding the display table.

Let me explain my problem.

Assume that I want to display a list of data in a table, each page contains 10 records. So when I clicked on page no.2, it will showing records from 11 to 20.
At this moment, I have click submit button to save the changes I did in page 2. So now my question is, after saved, it should be remain the page 2, but now it show "[First/Prev]1, 2, 3, 4 [Next/Last]" page 1 is highlighted.

And i found that when i clicked on the numbered pages list, parameter "d-xxxxxxx-p=2"(just an example) will be appended in the url.

My question is how can i set this value?

I can get doing this:

String numero = request.getParameter("d-49653-p");

but in can´t set.

My table is:

<display:table name="<%=ConsultarProcessosConferenciaPortletBundl e.CHAVE_ATRIBUTO_LISTA_DOCUMENTOS%>"
pagesize="10" cellpadding="1" sort="list" defaultsort="1"
defaultorder="ascending"
decorator="ccf.portal.portlets.intranet.conferenci a.resource.FacturaDecorator">
<display:column property="descricaoLote" sortProperty="ordenacaoLote"
title="Lote" sortable="true"
style="width: 20%; align: left;"
headerClass="TableHeader"/>
<display:column property="descricaoDocumento"
sortProperty="numeroDocumento"
title="Nº. da Prescrição" sortable="true"
style="width: 10%; align: left;"
headerClass="TableHeader"/>
<display:column property="columnDocumentosParaDownload"
title="Digitalização(Presc./Prest.)"
style="width: 10%; align: center;"
headerClass="TableHeader"/>
<display:column property="reclamado" title="Reclamado?"
style="width: 15%; align: center;"
headerClass="TableHeader"/>
<display:column property="columnNomeFicheiroAF" title="Notificação"
style="width: 15%; align: center;"
headerClass="TableHeader"/>
<!--display:column property="columnNotificacao"
title="Notificação"
style="width: 8%; align: center;"
headerClass="TableHeader"/-->
<display:column property="columnAccoesSobreDocumento" title=""
sortable="false" style="width: 20%; align: center;"
headerClass="TableHeader"/>
<!--display:column property="columnSeleccao" title="Reclamar"
style="width: 6%; align: center;"
headerClass="TableHeader"/-->
<display:footer>
<td>&nbsp;</td>
</display:footer>

<!--tr>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td align="middle">
<script type="text/javascript">
document.write('<a class="CommandButton">RECLAMAÇÕES</a>');
</script>
<noscript>
<input type="submit" name="<%= ConsultarProcessosConferenciaPortletBundle.CHAVE_P ARAM_ACTION_REQUEST_ID %>" value="<%= ConsultarProcessosConferenciaPortletBundle.CHAVE_P ARAM_ACTION_RECLAMAR_VARIOS %>"/>
</noscript>
</td>
<td>&nbsp;</td>
</tr-->

<display:setProperty name="sort.amount" value="list"/>

<display:setProperty name="css.tr.odd" value="colorOdd"/>

<display:setProperty name="css.tr.even" value="colorEven"/>

<display:setProperty name="css.th.sortable" value="TableHeader"/>

<display:setProperty name="css.table" value="TableList"/>

<display:setProperty name="paging.banner.item_name" value="documento"/>

<display:setProperty name="paging.banner.items_name" value="documentos"/>

Thanks to everyone
Apr 12 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.