473,394 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

page navigation in jsp

52
hi,
i need to retrieve only 5 records at a time from the database for display in my jsp page. also i need to provide for previous and next page navigation.
how do i do that?
Mar 29 '07 #1
6 3978
r035198x
13,262 8TB
hi,
i need to retrieve only 5 records at a time from the database for display in my jsp page. also i need to provide for previous and next page navigation.
how do i do that?
What do you have so far?
Mar 29 '07 #2
mallz
52
What do you have so far?
hi,
i am able to retrieve records from the database......
i tried using a for loop for retrieving 5 records at a time, it works, but i do not know how to do page navigation.

i visited this site and downloaded the related files but im unable to understand how to use it...
http://jsptags.com/index.jsp
Mar 30 '07 #3
dmjpro
2,476 2GB
r u talking about history.back or history.forward ??????
Mar 30 '07 #4
mallz
52
r u talking about history.back or history.forward ??????
both ways.............................................. ...........
Mar 30 '07 #5
dmjpro
2,476 2GB
then u can use .... in html code like this ....


<input type = button value = 'Back' onclick = 'hiostory.back()'>
<input type= button value = 'forward' onclick = 'history.forward()'>

use this ... best of luck
Mar 30 '07 #6
itsraghz
127 100+
if you are looking for the real Pagination aspects, you need to better do a google search for the same.

Say, "JSP + Pagination" will do. There are some good opensource components for Pagination which you can customize it according to your needs.

Ultimately it deals with a Bean Component for the first,last,prev,next values being clicked and the logic to adjust the values when each button is clicked. But the most important thing is how and when you fetch the data from the database and where you keep them. [caching].

Good luck!
Mar 31 '07 #7

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

Similar topics

22
by: Jonathan Snook | last post by:
I've been contemplating what the recommended usage of a "top of page" link should be? Should there only ever be one at the bottom of the page? Should they be sprinkled at various points on the...
1
by: dezza | last post by:
Hi, I am developing a web application that is a series of pages, rather like a wizard. Because all of the pages basically have the same navigation, and require the navigation buttons in the...
28
by: laredotornado | last post by:
Hi, Surprisingly, I can't get the drop down menus to work on PC IE 6. If you roll over "PRODUCTS", normally a drop down menu appears (on Safari and Firefox), but on PC IE, nada. ...
5
by: Bill Davidson | last post by:
All: Pardon the newbie question, but let's say I've got two pages in my website: Welcome.aspx NoNav.aspx I want users to be able to navigate to the welcome.aspx page (e.g....
8
by: Amit | last post by:
I have a master page and a content page but the stylesheet isnt getting applied like how it looks in visual studio design view. The master page is defined like this: <%@ Master Language="VB"...
5
RMWChaos
by: RMWChaos | last post by:
Apparently, I can't do anything the easy way, which seems to lead me here so very, very often. Here is what I am trying to do this time: 1. Autogenerate two navigation bars, "navLeft" and...
3
by: rassklass | last post by:
HI all, I have designed a site found at www.pickupnewspapers.co.uk/nottinghamshire/index.html but I cant get the footer to sit stil on the page. It is because of the javascript ticker, everytime...
5
by: smittie31 | last post by:
I am having a problem with a border around me html page. The border does not flow thru the whole html page, it cuts off halfway. --> See http://keithborom.com/marlon-sanders CSS STYLESHEET ...
2
by: koruyucu | last post by:
we'd like to make smth like google implemented in gmail: when user compose mail and then wants to leave page without actually sending it, gmail notifies user about mail was not sent. this should...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.