Recordcount how can I solve that?

Hi there,
when I fire a SQL I want to know how many records have been retrieved.
In ASP it was easy, just like <%= rs.recordcount %>
How can I show how many records I retrieved in JSP???

Hi
There is no recordcount method in JDBC. If you want to get the record count for the sql query. You need to first run the query. using the count in your query. Which gives you the number of records coming out for that query.
Or If you want to know the number of records after the query is executed use a counter variable and increment it before your while loop ends for each record.
Swaraj

Similar Messages

  • How can I solve that my I Pod Touch 4th gen. disconnects when I extract the IOS6 software?

    Hi, when i connect my I Pod Touch 4th gen. to I Tunes (for Windows XP) to extract the IOS6 Software to the I Pod it disconnects.
    How can I solve that the I Pod always disconnects when i want to extract the Software
    ,Thanks

    - Reboot the computer and delete the download and try again. The update file is located here:
    IPSW file location for Mac and Windows
    - Next would be to :
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    or
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    and then try again.
    The restore/update on another computer.

  • I have 4S , not recharging till i shut it down , how can i solve that ??

    i have 4S , not recharging till i shut it down , how can i solve that ??
    at once it strarted not feeling with the cable , cannot connect with itunes or PC , and also charger . Then i found when it is connectd with PC  and must be  shutdown ,   it recharging again after time .
    How can i fix that ?
    Is it problem in hard or software ?
    Plz help me

    How many years you have your mobile, mine 3 years now but before 3-4 months I replaced the battery as it was giving me such errors ( ex/ Today morning is fully charged, after 6-7 hours when Im outside the phone suddenly turned OFF and if I try to open it, there will be an image in the screen to plug it to the charger but after sometime I can open it and see that it have 50-60% charge) this happened many times so when I replaced the battery this issue never happened again and its ok now with all these apps and daily usage (same battery life as before when was new)

  • Can't zoom with trackpad in safari how can i solve that?

    Help please!!!
    can't zoom with trackpad in safari how can i solve that?

    There are two places on settings where you can tunr zoom on or off for the trackpad.
    They both need to be on for it to work.
    The first is under: system preferences>trackpad>scroll & zoom, then you just need to chekc the box to turn zoom on. ( this is the one you already have checked i think)
    The second is under: system preferences>universal access>seeing, then check the box that says zoom.
    Hope this helps.

  • Since my last update the rendering of the preview pics changed badly - how can i solve that?

    PS CC said there was an update, I should have ignored it. I cant open 16 bit as smart objects from camera raw, because ps will crash then a few minutes later. OK, I dont open smart objects anymore. But also the preview of the pics look weird, too contrasty and with moirée. Only if i am close to 50 or 100% view it turs ok, in 8 to 12 % which is the normal working view to see the full picture it is useless. The pic shows what i mean. It shows the same pic, left on my new, fast computer and on the right on my old computer. On the old it renders nicely, on the new computer there is moirée and pixels in high contrast. I compared all settings from both, i updated the videocard drivers, I uninstalled PS CC and reinstalled it, but no change... The pic is fine when saved but it is hard to edit it when it looks so weird. How can i solve that?

    Strange, today it was OK, had problems again with the cloud, impossible to log on, everytime i log on it says i am logged off and should log in. Only deleting OOBE folder solves it for a while and PS CC seems to work. But on next start the cloud is off again. That cloud system sucks, would it be better to run a crack to avoid that problem?

  • Hello, trial version of LR5 always executing, how can i solve that ?

    Hello, trial version of LR5 always executing, how can i solve that ?

    Are you trying to install the AirPort Utility program from the CD that came in the box with the Time Capsule?
    If you are, instead download and install AirPort Utility 5.6 for Mac OS X Lion
    Trash the CD

  • Ultiboard file takes up to 5 minutes to open or save a file. how can I solve that?

    Hi, recently I modified a previous design created using ultiboard 10.0. Since that day, every time I save or load the file it takes 5 minutes or more to finish the required action. It's really annoying to wait that long in the middle of work for the user interface to become usable again. It didnt happen before. I tried to select all and copy in a new file as Nestor suggested in a previous post, but after I selected all and pressed the copy button, the application hangs.. how can I restore the file? or al least reduce the time needed to save or load. Thanks.

    Hi!
    To help you better in your problem can you please give me some informations:
    -Wich version of Ultiboard are you using now?
    -Wich packet are you using? It is Student, Base, Education, Full or PowerPro edition?
    To obtain this information, after opening the Ultiboard software click in Help > About Ultiboard.
    I'll be waiting for your informations.
    Thanks.
    Luciano Borges
    National Instruments
    Luciano Borges
    R&D Engineer
    Pirelli Brazil

  • HT1689 error code 11111 how can i solve that

    When I try to get bought programs in Itunes, I get the error code.
    When i try to get bought programs in the iphone, they don't get downloaded. Read that it could be account problem. I do I solve it
    //Oliver.hanson01

    Hi lamprosfromny,
    Welcome to the Apple Support Communities!
    For the specific alert that you are receiving, I would following the USB troubleshooting steps located in the attached article.
    Resolve iOS update and restore errors
    http://support.apple.com/kb/TS3694
    Check your USB connections
    Related errors: 13, 14, 1600, 1601, 1602, 1603, 1604, 1611, 1643-1650, 2000, 2001, 2002, 2005, 2006, 2009, 4005, 4013, 4014, or “invalid response."
    If the USB connection between your device and computer is interrupted, you may be unable to update or restore.
    To narrow down the issue, you can also change up your hardware:
    Use the USB cable that came with your device, or a different Apple USB cable.
    Plug your cable into a different USB port directly on your computer. Don't plug it into your keyboard.
    Try a different computer.
    If necessary, resolve any further issues with the USB connection, then with your security software.
    If you're still seeing the error message, check for hardware issues by following the next section.
    Have a great day,
    Joe

  • My system preferences is not working, how can i solve that?

    hi, my system prefrences is unresponsive, i can't open it, it shows me the '?'  what is the solution for that please?

    Use iTunes and a PC/Mac to update and that might just fix the wifi

  • I bought an american itunes card.However the code doesnt work in canada. How can i solve that?

    help please

    All iTunes gift cards are country-specific, to use a US gift card you will need to be in the US with a US iTunes account. If you are now back in Canada then do you know anybody in the US that you could sell or give the card to ?

  • How can I solve the problem about the purchase could not be complete?

    When I want to buy the gems in the game it shown me that the purchase could not be complete, how can I solve that??

    If you are also getting a message to contact iTunes Support then you can do so via this link and ask them for help (we are fellow users on here, we won't know why the message is appearing) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I'm having trouble with my Apple ID. I changed my email account, and recently (a month ago) and since I switched is requested every time I open any app to Apple ID password to the old email. How can I solve this? Could it be that my iPhone 4S is in sync w

    I'm having trouble with my Apple ID. I changed my email account, and recently (a month ago) and since I switched is requested every time I open any app to Apple ID password to the old email. How can I solve this? Could it be that my iPhone 4S is in sync with my Ipod???

    If you updated your existing account then try logging out of it on the iPhone by tapping on the id in Settings > iTunes & App Stores and then log back in and see if that 'refreshes' the account on the iPhone. If you created a new account then any content that you purchased/downloaded via the old account will remain tied to that old account, and only that old account can download updates to its apps.

  • Why is that i can not view my warranty status? whenever i tried to put my phone's serial number itunes prompt that my serial number is not a valid one. how can i solve this issue?

    why is that i can not view my warranty status? whenever i tried to put my phone's serial number itunes prompt that my serial number is not a valid one. how can i solve this issue?

    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on th

    I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on the FTP server Blog.

    You haven't a problem. You simply did not read the iWeb Help :

  • The ipad'osby media pro' could not be synced because this computer is not authourised for purchased item that are on this ipad.how can i solve this proble,i've authourised it several times

    the ipad'osby media pro' could not be synced because this computer is not authourised for purchased item that are on this ipad.how can i solve this proble,i've authourised it several times

    Hello, osbybass. 
    Thank you for the question.  This alert can mean that iTunes is recognizing applications on the iPad purchased by another Apple ID.  If anyone in your household has an Apple ID, try authorizing the computer with their Apple ID and attempt to sync.  If you are still experiencing issues, go through the troubleshooting steps in the attached article. 
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Cheers,
    Jason H. 

Maybe you are looking for