Help required Basic question !! pls ans

want to know
1)How much Statement I can use in my jdbc for queriny in numbers of tables
by one jsp
2)do i require for all queries new statement and result set
3)Is their a performance issue if i create more than one statement in
one jsp file
thanks

Only thing you want to make sure when doing multiple queries, is closing. You want to make sure you call the close() method on all of your ResultSet and Statement/PreparedStatement objects when finished. Since you want to close these objects if there is a db error or not, a finally clause is the best place for it.
java.sql.Connection dbc = null ;
java.sql.Statement cursor = null ;
java.sql.ResultSet data = null ;
try {
.....create connection, do query etc.
}catch(SQLException e)
....Error handling
finally
   try {
      if( data != null )
          data.close() ;
   }catch(Exception e){}
   ..do the same with each statement and connection as well.
}Make sure when doing quereis in a loop that you close the previous statement object before creating a new one with dbc.createStatement() ;

Similar Messages

  • Please help with basic questions

    I hardly ever use flash, as i'm always ending up kicking
    stuff out of sheer frustration. Just like with Quark Xpress, in
    Flash there seem to be several 'layers' between what my intuition
    tells me should work, and the actual execution of the things i want
    to achieve. But nevermind, I'm just severely annoyed.
    I got 10 buttons, with a graphic as bottomlayer, and a number
    (1-10). Isn't it possible to turn the first button into a symbol,
    and then make copies where i just have to change the number? For
    now it doesn't matter if i copy/paste them or drag them from the
    library, when i copy the button and try to change the number in the
    copy, then the number in the 'original' changes as well.
    Do i really have to 'make' each button from scratch?
    This might seem like a very basic question, but i'm really
    bangin my head into the wall here. And theres tons og issues like
    that in Flash - for me at least - like if i say 'paste in place',
    things get pasted some random place on the canvas (anywhere but in
    place). If i convert to symbol, the referencepoint (or the point
    which it's supposed to rotate around) seems randomly choosen as
    well - at least it's never where i told it to be in the appropriate
    dialog.
    HELP! :-(

    Go to the library and there should be an arrow in the corner
    that gives you options. One option is "duplicate symbol." Duplicate
    your button and give it a new name, then make the changes.

  • Adding content to a web page [was: Help with basic question (i think)]

    Hi there everyone, first time in this forum.
    Im creating a website for the first time in dreamweaver after using other programmes and have so far created a banner and nav bar across the left hand side. I am unsure on how i am meant to add any content into the actual centre of my page as there is no box there to write in or add pictures and when i create a image or div or table they all just hug the top of my page and refuse to go next to the navigation bar like i need to it! im sure it is simple but i am finding it so much harder to use than any other programme.
    Im trying to do a list of pictures and descriptions for my mums business.
    any help would be greatly appreciated.
    thanks!
    Harry

    Harry, I have moved your post from the HTML5 Pack forum to the Dreamweaver General Discussion forum, which is the most appropriate place for this sort of question.
    Dreamweaver is a professional web development program that requires at least basic understanding of the underlying web technologies: HTML and CSS. It's not a WYSIWYG program where you can just drag and drop items on a page. To give you a better understand of how Dreamweaver works, it might be a good idea to try the Building Your First Website tutorial here: http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html.
    Since you're new to this forum, I also suggest you take a few moments to read How to get help quickly, and browse through the Dreamweaver FAQ.

  • Morning all. Hope you can help. Basic question for a newbie.

    Is there anyway I can check if a form is in QUERY_ONLY mode??
    Basically I have a button and I want it to do different things depending on if the form is query only or not.
    Really hope you can help me...
    thanks alot...
    Ben

    Whoa. After looking at that I'm still confused.
    We have a form on our system that can be called in 2 different ways. Calling the form normally and calling it in Query only mode depending on the user roles.
    The form we are calling can then call about 10 other forms. However we want it so that one particular form can't be accessed in query only mode but can be accessed in normal mode.
    I'm thinking about just setting a global when calling the main form depending on if it's in query only mode or not. Then checking the global when trying to call to subsequant form, if the global is set to "QUERY_ONLY" then give an error message telling the user is not allowed to view the form or running the form it the global is set to "NORMAL". But didn't know if there was a better way to do it or not.

  • Help on Basic Questions

    Hi there,
    I have just taken the first courage to open up the Motion software after purchasing some tutorials.
    Questions:
    1) I usually do my project in 1920 x 1080 at 25fps, so I select a Blank project with Broadcast HD 1080. Is this the correct settings ?
    2) I tried to import some still photos. When I went to the browser to goto the folder where my pictures afre located, my jpeg filename has been name as xxx1:xx20 instead of xxx1.jpeg, xxx2.jpeg ... xx20.jpeg. It is also now shown as a jpeg sequence @ 30 fps. So what happened ? Why my still pictures are not displayed as movies (ie jpeg sequence) ? At why is it at 30 fps instead of 25 fps ?
    Thanks

    Thanks GFXZen for the reply and assistance.
    That means if it is in sequence, that will be good if you do a timelapse video. right ?
    Thanks
    GFXZen wrote:
    For question two, I'm not sure if you do want an image sequence or if you don't, so I'll just cover the basics. When looking at the file browser if you see a name as you described (xxx.1:xx20) this indicates that you are set to show stills as image sequences and not individual stills.
    If motion sees images in the directory that are sequential,  001, 002, 003, etc., and this button is checked you will see this naming. It just shows the sequence and the frame range. If you do want a sequece, then just add the clip to the canvas.  If not, deactivate the button and you will see the stills or frames as individual items.
    If you do want an image sequence, and the frame rate is not right for the clip after import, you can always check and overide it in the media settings.  Select the movie file or image sequence in the layer list or timeline and type Shift-F.  This will switch you to the media settings in the inspector. Just change the frame rate to the one you want.  Remember, you can always change the frame rate of media, but the project frame rate can not be changed after it is created, so make sure that is right in the begining. 

  • I feel pretty dumb, plz help with basic question

    I had some problems with internet not working, cable was no hep. But finally at this point modem is working, internet is working. However router is not. The lites are lite.  AT this point im not sure if cable  company did something to my pc while checking interenet connection. In my list of programs, I dont see a linksys folder, but I cant remember if I had one. Cant find original cd.  My other pc is not working either, sz "scanning".   Any suggestions? Should there be a linksys folder?

    Will the internet work if you connect straight from the modem to PC? If so, then you will have to do one or the other.
    Go into the router and find where you can clone your PC's Mac Address.
    Restart your router
    or
    Try leaving the modem and router off for about 2 hrs. This will clear the Mac Address your ISP have.
    I had to leave my RoadRunner modem off for a day. I turned if off before going to work and turned it back on. Retarted my router. I did not have to clone my PC's Mac address going this route.

  • Basic questions of structure Alchmy inside the AVM ans corePlayer ? Help!

    Hello community:)
    Flash Player 10 has been amended in order to run the new code from the compilation Alchemy! Is this correct?
    The new ABC Alchemy is for new features such as memory pointer, asynchronous functions? is that correct? and what else?
    This amendment consists of a small AVM separated from the Tamarin ? where everything is in Tamarin?
    The memory allocated to code from Alchemy is separated from the memory area allocated to the AVM and PlayerCore? it is like that?
    The CorePlayer flashRuntime and had to be changed?
    The ABC from Alchemy is intended only as to the AVM? or also to CorePlayer?
    Alchemy can access the BIOS? especially for 33h the mouse? if not, is it possible to control the mouse in one way or another with Alchemy?
    Immagine it would create a code C to produce sound from a bytesArray to replaceSampleData AS3 class, it's possible? If not, why? a restriction of the sandbox?
    Can be added directly to the assembler code using Alchemy? or it's prohibited because of the respect of cross platefrom?
    Thank you for maximum responses! although one can easily imagine some answers, I have confirmation:)
    Too many people claim things on forums, affirmative behave as if it was the system programmers themselves FlashPlayer! Outside, people sometimes give wrong answers! Two days ago, I had a guy who claimed that the AVM does not compile ABC! The ABC was executed directly .  It's sad and a shame to read such things. He obviously did not read and do not know the JIT
    This post is aimed at people on what they say and who were able to verify the information. Alchemy or programmers themselves.
    Thank you all!

    In order to understand things and not waste our time trying to code without knowing ifthey are not working because of am or even if it is because it is not impossible or not the player, I'm posted this on the forum Player. But my post is not answered .. Adobe programmers never come on this forum? Nobodyknows exactly how it works?
    Hello everyone
    I have some basic questions about the Flash player and  AVM2..
    I made this little flow chart for Player 9 and above >
    Can  anyone tell me if it is consistent and fair to me or to report a possible error?
    AVM2 the only accessing the CPU and Ram? and in no event in the device or OS API, right?
    The AVM2 in our current players is always a Tamarin?
    The next step is to replace the JIT by the nanoJIT spiderMonckey?
    The byteCode from Alchemy is well executed in the AVM and not elsewhere?
    The memory area codes assigned to Alchemy is the same as that of the AVM or is it different andseparate?
    Thank  you for your answers.
    Gordially,  Alain.

  • Possibly a very basic question but I have set up a spread sheet in Numbers and have viewed help videos but I can't get it to give me sums for the columns I highlight.  Keeps coming up with the figure zero.  I have version 09 2.3(554). Can anyone help

    Possibly a very basic question but I am going nowhere without a solution.  I have set up a spreadsheet in Numbers but it won't give me sums for chosen columns. I  have viewed the run through videos and used the formula but nothing happens apart from giving a figure of zero or a red arrow.  The sum icon in the bottom left hand section of the window does not highlight or show any total as I understand from the video that you can drag whatever total is here onto the relevent position on your spreadsheet.  I have Numbers 09 version 2.3 (554). Can anyone advise. Thanks.

    Hi Sohojools,
    To sum a column, use a formula such as this one in Cell A6
    Type this in a cell below your data:
    =SUM(A2:A4) or whatever range of cells you want to sum. The easy way is to type:
    =SUM(
    and then drag or shift-click to select the range of cells. Close the formula with a final bracket ")".
    The sum icon in the bottom left hand section of the window does not highlight or show any total
    To see the sum (and other simple statistics) in the bottom left, select a range of cells. That tells Numbers which cells you are refering to.
    The videos are good, but the Numbers'09 User guide, and the Formulas and Functions User Guide are better. Download them from the Help Menu in Numbers.
    Regards,
    Ian.

  • HT5699 Im from another country and ive lost the answers to my security questions. Help required

    Hi
    Im from another country and ive lost the answers to my security questions. Help required
    Thanks

    You need to contact Apple, either as described in that article or by filling out and submitting this form.
    (90034)

  • Basic questions on iPhone apps. Please help!

    Hey I have a few semi-basic questions about iPhone apps. If you know the answers to any of them please respond as it would help me ton. Even if you dont know the exact answer, it'll help me with any input. Trapster is a good example of what im looking for because it uses a map and it receives/sends small amounts of data constantly.
    1) How much on average does it cost to hire a group of people to code an app for you. Specifically, how much do you think the app Trapster took to program? Are there any specific other apps you know how much it took to code? I need estimates, because I have nothing. A number like 50,000 would help a ton more other then saying "it depends" .....
    2) Apps like Trapster, send and receive small amounts of data all the time? What controls all of this data? Im guessing a server. But what are the server's specs? How many? Price per month?
    3) With 3.0 SDK now out, you are now allowed to implement google maps into 3rd party applications. Now I know you cannot use it for turn-by-turn navigation. But can you still use the directions feature already on google maps? Can you still use the search feature to search for a restaurant as well? Or maybe you can just see the map and thats it. Does anyone know exactly what you can use with google maps or know where there is more information? Ive tried everywhere.
    4) Just tell me if this is correct: You can add advertisements into your app. On average, for every 1000 times your app gets opened, you get about 1.00-2.00. So if your app gets opened 2,000,000 times you get $2,000 from advertising if you get 1.00/1000. Is that accurate as an average?
    5) Since 3.0 now supports push notifications, would you be able to have anything at all running in the backround? For example, on trapster, if you approach a red light camera, the app beeps. With 3.0, if you are on the home screen and approaching the camera, is there a way of getting the iphone to beep even though your just on the iphones main screen or any other screen? Im guessing not because in order to receive the push the iphone needs to know your current location and the location of the camera, which is why the app would need to be running. Incase im wrong is there a way of doing this?
    6) If an app is free and does not do advertising, does it make any money? If so how?
    Thanks!

    >"If an app is free and does not do advertising, does it make any money? If so how?"
    Of course.
    It's called 'reputation earned'. You negotiate your future based on attention from something (a free app?) that amazes the known world. Could be a book deal after you spend your young/old life crossing the divide - could be a marriage proposal that brings great wealth - could be a cabinet position with a station in a foreign tax haven.
    Use your imagination.
    As for cost, pull a number out of your hat and then double it...then double it again. Same goes for time, staff and delays.
    Ad-ware is so yesterday. Find something more current to scrape off your shoe

  • HT5787 I forget my security question pls help me

    Pls I need your help I forget my answer of security questions what I do ?

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
    Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                             Apple ID- All about Apple ID security questions.

  • I cant reset my security question pls help me

    I cant find the reset your security question pls help me

    If you mean that you're aren't getting the reset link as described in the steps half-way down this page : http://support.apple.com/kb/HT5312, then that will only show if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account.
    If you aren't getting the link then you don't have a rescue email address, and you won't be able to add one until you can answer your questions - you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the above HT5312 page to add a rescue email address for potential future use

  • Question pls help

    Hi I wanted to ask a question, pls do reply to help me out.
    Can I include a method call to another class, within the same transaction, that performs a
    database statement or must the actual select statement appear within the
    setAutoCommit(false) .....commit()?

    Please elaborate. I believe the answer is yes, but it's not entirely clear what you mean.
    - Phil

  • Help Required CLAD test questions

    Hi,
    I need help with these questions immediately. this is the last set of questions for mwhich i could not find answers anywhre. if someone from NI can help me to tell the correct answers i shall be really grateful.
    Since i dont get the wrong question numbers after the test I am not sure about these answers.
    Please its urgent I have my test in 10 hours from now.
    Thanks everyone
    Regards
    CLAD
    Using Labview 5.1,6.1,7.1.8.0

    Ooops
    just now i have scored 39 out of 40 and i guessed on few questions so dont know which went wrong
    And these are common questions from all the tests that i gave whose answer I am not sure and in the last test i changed few answers and got 39 correct.
    now i dont know if i should be happy or sad.....
    Message Edited by labviewmission on 11-30-2006 12:39 AM
    CLAD
    Using Labview 5.1,6.1,7.1.8.0
    Attachments:
    Ques2.doc ‏4869 KB

  • Flashing question mark on start up? Help required!

    Hi there people this is the first real problem i have had with my macbook so is also my first post on the forum.
    The problem when i start-up my macbook all I am getting is the file symbol with a question mark inside that, which flashes on and off. I have turned the machine off a couple of times but the problem is still there. i belive it may be a harddrive problem as there is a slight clicking on start-up.
    Does anybody know whats happening or should i visit the local apple store, as i don't really want to buy a new macbook right now, as nice as they are:)

    The question mark... try booting from your install disk while holding down the C key... go here for more help: A flashing question mark appears when you start your Mac
    Carolyn

Maybe you are looking for

  • Report to see VAT code details

    Hi, Please help me if there is any SAP report to see the transactions posted in a particular tax code. we are looking for the amount and the accounts (vendor, customer or G/L), where this tax code is booked on. Thanks.

  • ItemRenderers documentation

    Hi, all, LiveDocs are a wonderful resource but here's a way to perhaps improve them. I recently wrestled with a problem and wondered if we can make life easier for those who do anything with itemRenderers. Many of us start with LiveDocs when developi

  • Annoyuing Antimalware Doctor pop up. How do I get rid of it.

    While in any application on line I am interuped with this annoying Antimalware Doctor pop up. Did Firefox send it? How do I get rid of it?

  • Uploading a pic - no event names displayed, just thumbnails...

    I am trying to upload a picture using the "choose me" button in safari.  When i do, and i down to media -> photos -> iphoto -> events all it does is show me the thumbnails all of my events, but there are display names to differentiate which event is

  • Ad-hoc network PC & iPhone to update apps from PC

    I have several apps that also have laptop programs that can share info. Unfortunately, these can't be shared with the cable and need to have a network connection. I'm not great technically on the computer or understanding computerese. My IT guy at wo