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

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"
decorator="ccf.portal.portlets.intranet.conferenci a.resource.FacturaDecorator">
<display:column property="descricaoLote" sortProperty="ordenacaoLote"
title="Lote" sortable="true"
style="width: 20%; align: left;"
<display:column property="descricaoDocumento"
title="Nº. da Prescrição" sortable="true"
style="width: 10%; align: left;"
<display:column property="columnDocumentosParaDownload"
style="width: 10%; align: center;"
<display:column property="reclamado" title="Reclamado?"
style="width: 15%; align: center;"
<display:column property="columnNomeFicheiroAF" title="Notificação"
style="width: 15%; align: center;"
<!--display:column property="columnNotificacao"
style="width: 8%; align: center;"
<display:column property="columnAccoesSobreDocumento" title=""
sortable="false" style="width: 20%; align: center;"
<!--display:column property="columnSeleccao" title="Reclamar"
style="width: 6%; align: center;"

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

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

<display:setProperty name="" value="colorOdd"/>

<display:setProperty name="" value="colorEven"/>

<display:setProperty name="" 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.