Page navigation - i know you have seen this before

I have been researching page navigation for a couple of days unsuccessfully for a situation like this
"select * from tableX" where tableX has 1M records and I want them to be presented in groups of 10 "as google does" (WWGD)
Environment: DB2 7.x z/os using servlets
Among the solutions that I looked up were
1. Retrive all rows and store in session which in my case will not work. I think valuelistHandler operates like this.
2. Do a query everytime u want a next page
3. Query first 100 rows in session and then page thru them and then query next 100 upon request.
option 2 or 3 are valid for me but my problem is with db2. db2 does not have ROWID as oracle, it does not have "limit 10,20" as mysql. So the question is "how can i get rows 20 to 30 in one request; and so on. I am sure that this is the most common db question but i am new to db programming.
I would appreciate links, ideas, complete code (no flames please), anything. need to get this done soon.
thanks in advace.
TP.

a nice link discussing this topic at java ranch
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=7&t=011247
steve -
http://www.fdsapi.com - The easiest way to generate dynamic xml and html
http://www.jamonapi.com - A fast, free performance tuning and scalability measuring API

Similar Messages

  • An error has occurred while accessing SQL database or system resources. If this is the first time you have seen this message, please try again later. If this problem persists, please contact your administrator.

    I have SP Server 2010, and when I try to DELETE a rule within an existing Audience, "Property (Account Name) = domain/username", I get this error, "An error has occurred while accessing SQL database or system resources. If this
    is the first time you have seen this message, please try again later. If this
    problem persists, please contact your administrator."  When I try to "MODIFY" the rule I get this error, "One or more values typed on this page are not valid. Check the text for the indicated fields." 
    The last time I checked it was working, I'm not aware of any new updates installed recently?  I did a full Profile Synchronization as well, but still not working, please advise? -- Evenstarline

    Hi Sara,
    First of all thank you very much for your prompt responses. Here are my comments to each of your suggestions below, and just to let you know I am using a Farm Admin account.  I
    was able to do this way after we upgraded from SP 2007 to SP 2010 as well.   I would like to mention I'm not a SP expert, just been given the responsibility due to another person handling it just left, so apologize with some of
    my novice questions below?
    1. When I change the Operators to "Contains" or "Not Contains" get generates this error below.
         Error generating in red towards top of the audience page..."One or more values typed on this page are not valid.  Check the text for the indicated fields."
         Error occurred where you enter your "Value"..."Could not resolve the user identity. Please re-enter the account name."
    2. We have a 3-server-tier topology (SPWeb, SPDB, and SPFarm).  Does the updates only apply to where the Central Admin is installed, which is the "SPFarm"?  I checked all
    3 servers, and NONE of the updates (KB2899494, KB2889845, and KB2883055) you'd mentioned are installed.
    3. I'm new to IISRET, I need to be extra cautious of what I run in production, is this safe to run with no problem?  What does it do?  And How do I run it?
    4. I'm also new to viewing the ULS log.  I'd just downloaded a viewer for it.  I'm assuming the only logs I need to be concern with viewing are within the SPAdmin (where Central
    Admin is installed)?  There's so many of them, what should I be looking for exactly?
    Evenstarline 

  • Have you ever seen this before?

    just did an erase and install of 10.4.11. found my old bookmarks and now safari does this:
    any ideas? thanks a bunch
    dave

    Hi,
    Check in Font Book to see if you have any duplicate fonts installed?
    This [article|http://docs.info.apple.com/article.html?path=FontBook/2.0/en/fb1799.ht ml] explains what to check for and do if there are duplicates.

  • TS3276 How do I send an email and get a receipt that they opened it? I have seen this before, but don't know what setting to go to.

    How do I send an email and get a recipt that they opened it?

    Additionally, even if Mail supported it, the recipient would have to allow/consent to sending you the receipt - if I were the recipient, I would certainly not allow it. If you are sending legal or other very important files, use the "return receipt required" feature of US Mail - you will get a receipt that it was accepted with a signature.

  • Many of you have seen this already...sorry, but it is great!

    Click on this link, very simple and fun too!
    ALBUM ART IMPORTER 
    Self Built   Windows XP Pro   1.7TB, 2GB, RAM, 939 AMD 4000+

    !

  • Never have seen this before-no HD icon on desktop

    And does not show up in Disk Utility. After helping my friend with his Leopard and Office issue I decided to reinstall Leopard on my PB G4 1.25 1GB as it was acting wonky. I load the disk and start the install doing an Archive and Install. The screen shows about 4 hours to go so I go off to get some things done. I come back and my PB has shut down all by itself!
    I start it but apparently it didn't finish installing but when I try to run the install disk again it freezes and I have to hard restart. Then it crashes with a kernal panic. I start from an bootable external and the external HD icon appears but not the PB's HD! I go to DU but it just shows "Gathering information..." and the gear just spins and spins.
    I try starting from the install disk again and when I get the first windows nothing shows up in the Destination window. I go to Utilities where I can see the HD in DU but it won't let me Erase or Restore and then it crashes as a kernal panic. Repair Disk, Verify, RP all greyed out.
    What the heck did I do, what can I do, etc? I have never seen the HD disappear before and I am totally stumped.
    Also tried CCC from the bootable external but nothing shows up in the destination window. Sorry-the Target window in CCC.
    And, I loaded Leopard on my iMac 2.0 Core Duo 2GB from the same disk and it runs like a champ. No issues at all and much faster than Tiger.
    I go to the System Profiler and nothing shows up when I select ATA or Firewire (not even the external I'm running it off of now). It just has the continuously spinning gear.

    it seems pretty clear that your PB HD is dead or almost dead.
    you should get a new hard drive.

  • Just Upgraded to Firefox 8.0.1 and now cannot use Firefox preview in Dreamweaver CS5.5...any one else have this issue? I have seen this before in previous version of Firefox but got fixed.

    Not able to use firefox browser preview in Dreamweaver CS5.5 after upgrade to version 8.0.1. Now can preview only in Safari.

    Don't know if there is an option make the download window stay up, but you can bring it back with Ctrl+J then right-click on the download to open the folder it was downloaded to.
    * keyboard shortcuts -- http://dmcritchie.mvps.org/firefox/keyboard.htm
    Where files get downloaded to is in your '''about:config''' settings.
    * [http://kb.mozillazine.org/About:config About:config - MozillaZine Knowledge Base]
    * [http://kb.mozillazine.org/About:config_entries About:config entries - MozillaZine Knowledge Base]
    check out variables beginning browser.download.

  • When i open any mail its telling me to select a network never have seen this before and wi fi not connected

    anyone around ?

    Have you changed your WiFi password?
    Just back into settings and connect to your WiFi network.
    Settings > WiFI > Select your network > Enter password
    You can also turn off the Ask to Join Networks notifications in the same menu at the bottom below
    "Ask to Join Networks" switch to Off.
    So if you're not connected you'll have to go in and connect yourself if it's not a known network.
    If you've never connected using a WiFi network hit cancel and continue to use your Cell Signal/Data plan to access your email.

  • Firefox recording browsing history; "You have visited this page X times."

    I had to reinstall Firefox. I use Google as my search engine.
    I finally got things to where my browsing history was not saved. (Or at least I assumed it was not.) Suddenly, a week after I reinstalled Firefox, I am getting that tag "You have visited this page X times. Last visit was [date]." What is going on?
    I DO NOT want my history tracked. I have Firefox clear the cache EVERY session, and I also run CCleaner.
    What is very interesting about this is, I have requested my history not be tracked many months prior to reinstallation, and it seemed to not be doing it. Yet, today, when I do a Google search, it tells me my last visit to a certain site was 4/26. NOTE: I have had (supposedly) Google not tracking my search history for months.
    Also note: This time, I left checked the "Remember search form and history box." But if I supposedly wasn't being tracked before, why the heck does it remember the last time I visited a site?
    I want to know definitively--Is there a way to make my usage utterly anonymous, at least to Google. I am trying to get an idea of where a nonprofit site I run is appearing in search results. Because Google starts putting first any site you regularly visit, this makes it impossible for me to track how the site is actually doing.
    Thanks for any help you can provide.

    For research purposes, you could:
    '''Create a new Firefox profile'''
    A new profile will have your system-installed plugins (e.g., Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions, or other customizations. It also should have completely fresh settings databases and a fresh cache folder. However, Flash cookies may be shared among profiles (maybe, not sure).
    Exit Firefox and start up in the Profile Manager using Start > search box (or Run):
    firefox.exe -P
    Any time you want to switch profiles, exit Firefox and return to this dialog.
    Do not delete anything!
    Click the Create Profile button, use name like June2014, and skip the option to change the folder. Then start Firefox in the new profile you created.
    ''Before searching:'' Let's take Flash cookies out of the picture by preventing sites from using Flash automatically. To set "Ask to Activate", open the Add-ons page using either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Plugins. Look for "Shockwave Flash" and change "Always Activate" to "Ask to Activate".
    And finally, does Google give you different results in this new profile?
    When returning to the Profile Manager, you might be tempted to use the Delete Profile button. But... it's a bit too easy to accidentally delete your "real" profile, so I recommend resisting the temptation. If you do want to clean up later, I suggest making a backup of all your profiles first in case something were to go wrong.

  • One or more ActiveX controls could not be displayed because either:1 your current security settings prohibit running ActiveX controls on this page, or 2. You have blocked a publisher of one of the controls.

    hi All,
    i have one of the requirement for an application, we do upload some release not in file server and that is used in application link to see the note. in this note i have converted the Excel into .HTM format(web page). this was working fine, but from last
    two days all of a sudden we are recieving error as above.
    one or more ActiveX controls could not be displayed because either:1 your current security settings prohibit running ActiveX controls on this page, or 2. You have blocked a publisher of one of the controls.
    could anyone please help me on this.
    Thanks and Regards,
    krishnamurthy

    Hi,
    Actually Arnavsharma provided a operable method for you. But no luck, it's not invalid.
    Here I also offer you an method you can try.Please delete the extra (parasite) zone from the Zones subkey :
    Click Start , click Run , type regedit , and then click OK
    Expand the following registry subkey
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones
    Delete the extra (parasite) zone from the Zones subkey
    Note: The parasite zone is a pseudo-graphic number listed before zone number 0. The pseudo-graphic number looks like a miniature upper case "L"
    Close the registry editor
    Thanks!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I am unable to update my iPhone from ios4 to ios7, I know you have to do this via the computer however the backing up process stops part way through and it is unable to carry on

    I have ios4 on my iPhone 4 and I have tried to update it to ios7 and to do this I know you have do use the computer. however part of the way through, the back up process stops and nothing else happens

    I would suggest that you tru and update through iTunes on your computer. Also, could you connect your computer up to the internet using a wired connection rather than wireless - this will be faster and more reliable, particularly when you need to download a large file.
    Then try your update. This time, in iTunes, why not try to get it to download the sofware first (Download Only). You can then appy it to your iPhone later, once it has downloaded.

  • What do I do when I'm half way through a movie on Apple TV.  The movie then quits.  We go back on to the movie home page and it says you have already rented this movie, please go to settings, then downloads and select downloads but we can't find downloads

    What do I do when I'm half way through a movie on Apple TV.  The movie then quits.  We go back on to the movie home page and it says you have already rented this movie, please go to settings, then downloads and select downloads but we can't find downloads

    Try signing in and out of itunes on apple tv, do you have lastet OS?

  • HT1695 i have two O2 Iphone 4 's and one refuses to connect to any wifi network, and gives me dialog saying, unable to join network "name" dismiss. I took it to O2 shop and it will join 02WIFI. They haven't seen this before and couldn't help. can you?

    i have two O2 Iphone 4 's and one refuses to connect to any wifi network, and gives me dialog saying, unable to join network "name" dismiss. I took it to O2 shop and it will join 02WIFI. They haven't seen this before and couldn't help. can you?

    Have you tried standard troubleshooting
    ie reboot   >> press hold and sleep until Apple logo appears ignoring
    red off slider
    and look at this
    http://www.apple.com/uk/support/iphone/wifi/

  • On Pages, let's say you have two similar documents, but you need to compare the two to see the differences.  Is there a way to do that?

    On Pages, let's say you have two similar documents. Two versions of the same document, but not merged in Cloud and saved as two separate files. B ut you need to compare the two to see the differences, some things on one, but not in the other.  In Word, they would merge the two and differences would be highlighted in red.  Is there a way to do something like that?

    Not actually in Pages, but there is third party software that purports to do this, google around.
    Peter

  • I have a MacBook Pro version 10.7.5 Every time I try to open iphoto I get the warning: "To open your library with this version of iPhoto, it first needs to be prepared. You have opened this photo library with a newer version of iPhoto." How do I do this?

    I have a MacBook Pro version 10.7.5 Every time I try to open iphoto I get the warning: "To open your library with this version of iPhoto, it first needs to be prepared. You have opened this photo library with a newer version of iPhoto." How do I do this? I recently bought aperature, and it has been since then that I get this warning.
    Thank you!

    No I have not tried those things. I don't even know what that means I suppose I have the newest version of aperature; I just bought it 4 days ago.

Maybe you are looking for

  • Look Up feature is not working properly.

    Look Up feature will not work if another word is selected inside the Look Up display of the first word. The only solution was to the problem is to click on the word "Dictionary" (so that you will be using the Dictionary application instead) and then

  • How often should I charge my new macbook pro with retina display?

    hi everybody! I just got my macbook today and I want to take good care of it so it lasts me a while, and I'm particularly concerned about the battery life. what ensures that I can maintain a battery that will drain the slowest? or in other words, wha

  • What is with this error message?

    Usually after my computer is on for a bit, iTunes begins to get an error message that says "STATUSWAIT0". Even restarting iTunes doesn't help it, the only way to fix it is to reboot the computer and then it will come up again after some time. It's pr

  • ClassCastException using Subant and wldeploy ant task

    Hi! I'm using subant to call all diffrent build.xml files located in subdirectories. The buildfile looks like this: <project name="extern.call" default="callall">      <target name="callall">           <fileset      id="buildfile.set" dir=".." includ

  • Mini Help Please

    Hello All - My Mini's battery has died and I'm sending it for service. I know they're going to wipe it or replace it. It took me some time to build it exactly the way I wanted it and I don't want to do it again. However the powers that be have made i