As the data is large, I have to display it using Pagination. I have implemented the same, but now the problem is,
-->The pagination works fine for the first tab, but when I click on any other, and see for next/prev page, the control goes to the 1st tab!! This is because I am setting a request paramenter as 'searchIndex' (e.g main.jsp?startIndex=13).
I am not able to decide how should I go for this logic?
Should I use altogether different jsps to be called when a tab is clicked?
Please help. Let me know if I have missed on some information which is needed.
Add an extra request parameter which indicate the tab or so.
Joined: Jan 23, 2009
Thanks. I did try that. But I am not able to open the tab dynamically according to the request parameter. I am using <div> tag for differentiating the tabs. I am sorry if the topic is getting dragged to somewhere it should not.
I have the code as follows:
<h2><a name="tab1" id="tab1">Tab 1</a></h2>
//logic for pagination
<a href="main.jsp?tabID=1&startIndex=<%=(k*numRecordsPerPage)+1%>"> <%=PageNumber %>