This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes Multi page data view Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Multi page data view" Watch "Multi page data view" New topic
Author

Multi page data view

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hi,

I have developed a custom tag with java tag libraries.

This tag retrieves data from the database and shows the data as a table.

Sometimes, the selected data size to huge, which is not a good practice to view it all in one page.

Is there a specific component (or code) that let's me divide the the selected data into chunks and provide the user with links to the chunks so that when the user clicks on one, it will automatically show that selected part of data.

I guess that this probably has to be done using JavaScript.

Thanks in advance ...
[ March 14, 2008: Message edited by: Bear Bibeault ]

Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

Originally posted by Vassili Vladimir:
I guess that this probably has to be done using JavaScript.
No. In fact, JavaScript is a very poor choice for this.

Moved to the JSP forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

This type of "paging" is best done at the database layer. See this JSP FAQ entry for more information.
[ March 13, 2008: Message edited by: Bear Bibeault ]
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
But what I'm trying to do is not the paging in the database layer only.

I the view layer to page the result as tabs (or something similar).

Regards,
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Vassili Vladimir:
But what I'm trying to do is not the paging in the database layer only.

I the view layer to page the result as tabs (or something similar).


Its nothing different. You can present the result in whatever way you like. Here in this case you are not doing it using the typical pages way i.e. "page 1 2 3 4 5 .." or neither using "<< previous next >>" way, but using tabs. So, what. Its nothing different as far as logic concerns. You can think of a tab as "next" and "previous" thingy. Or better think of it as pages. Where page 1 would be your first tab, and page 2 would be your second and so on ...

Cheers.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Multi page data view
 
Similar Threads
Display tag and Struts multibox tag
few questions about design struts application
Passing data using netui
Hi Experts, Big problem
JSF Edit Page