Will jsp use connPool by this way?

I installed mysql-essential-4.1.13a-win32 and jakarta-tomcat-5.0.19. I just copyed mysql-connector-java-3.1.10-bin.jar to CATALINA_HOME\common\lib and did nothing to CATALINA_HOME\conf\server.xml, WEB-INF\web.xml. Through jstl, i can access mysql db.I want to know that whether my jsp are using connection pool to access mysql by this way?

Thanks for your replying:), I use the code below to access mysql:
<%@ page contentType='text/html;charset=gb2312'%>
<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core'%>
<%@ taglib prefix='sql' uri='http://java.sun.com/jsp/jstl/sql'%>
<sql:setDataSource var='dbRef' url='jdbc:mysql://localhost:3306/demo'
                                         driver='com.mysql.jdbc.Driver' user='user' password='password'/>
<sql:query var='queryRst' dataSource='${dbRef}'>
     SELECT * FROM employees
</sql:query>
<table align='center'>
     <tr>
          <c:forEach items='${queryRst.columnNames}' var='colName' begin='1'>
               <th align='center' bgcolor='lightgrey'>${colName}</th>
          </c:forEach>
     </tr>
     <c:forEach items='${queryRst.rowsByIndex}' var='record'>
          <tr>
               <c:forEach items='${record}' var='field' begin='1'>
                    <td>${field}</td>
               </c:forEach>
          </tr>
     </c:forEach>
</table>It is relly a good idea according to SoulTech2012, i don't know how to set a breakpoint in the connection pool or use whatever admin tools you have to monitor the connection pool.What references shoud i turn to on this point?
As evnafets say, i specify all the params in jstl. So connection pool shoud not be used. Can i use connection pool without configing server.xml or web.xml?

Similar Messages

  • What do you think about using plant in this way?

    In your systems each plant is "real" - has real location and real manager, or also you have “virtual” plants to monitor a particular special process (for example: if you want different FI bookings for the same material movement type, or if you want to track special kinds of stock)?
    What do you think about using plant in this way?

    Hello Friend,
    It is surely a good step from FI point off view but creating something virtual and transacting on it, from MM point of view is not feasible as it is difficult to frame the scenario and work on it.
    Rest is your decision.
    Regards,
    Pradnyesh Naik

  • How to use classloader in this way? Is it possible?

    I have one my own classlaod. So, I can do these: use the classloader to load the class, use the class's newInstance method to get instance object, then use reflection to invoke methods of the object.
    I think this is the standard way.
    However, it is not convenient. Is there a way that allows me to using the class that loaded by my own classload in "old way", i.e. just new to get object, and directly use it. For example, like this:
    ..Get classloader
    class MyClass = loadClass("MyClass");
    MyClass obj = new MyClass();
    obj.someMethod();
    If this way is possible, it is much better. In theory, it should have no problem. I think Java Web Start, etc are just doing similar like this. But, at this point, I do not know. Please share your thoughts.

    You have to distinguish between compile time, and run time features available to you.
    MyClass x = new MyClass() ; is a language construct that is available at compile time.
    Reflection is available at runtime.
    If you want a mix of both, you may have to generate code. Depending on how you like it - you can either generate source and compile it, or generate byte code directly. But since you seem to be interested more in simplifying your code, due to the relative obscurity of reflective code, your best option would be to use a code generator.
    So use your classloader to load the class, then generate and compile code to use it. (This may be even more complex, but this is how you would have to do it)

  • Firefox comes up in "safe" mode. How do I turn it off. I can't use the program this way.

    About two weeks ago some virus (?) got in my computer. I lost everything and had to reload everything.
    When I reloaded Firefox it came up 'locked'. Nothing would react to my mouse.
    I discovered it came up in "safe" mode. I removed the program and reloaded it again. It came up in safe mode again. When I hit start and look at programs Firefox is there and under it is another Firefox program with safe mode in parenthesis. I can't use it this way. How do I turn safe mode off?

    See [[Firefox is stuck in Safe Mode]], the last option seems to be the most likely in your case.

  • Recently my movies and videos take forever to load and when they start playing it's for a second or two at a time. Have to hit the play icon over and over, did not use to be this way they work great on my desktop and iPod

    Recently I have been experiencing my downloaded videos and online vids taking a long time to load and when they do, they will only play for a few seconds at best and you have to hit the play icon over and over. Never had this problem before with the 20 plus vids I have any suggestions would be appreciated

    I finally resolved my problem after spending way too much time on it. I simply handed my 160GB iPod to my husband to put his fav Stones & Beatles songs on and I went back to my 80GB Microsoft Zune which has never disappointed me.
    After spending so much time trying to figure this out I did finally take it back to Apple Store who performed a diagnostic and found there was a problem with the device. They replaced it with a refurbished one which has similar issues. All I wanted to do was listen to my music. Was that too much to ask? So I am happy to be free of this problematic device. No more Apple for me!!

  • I am having trouble with yahoo mail, very slow to send never used to be this way started before iOs5 update

    I am having trouble with mail, yahoo has started to have a problem sending, slow or not at all started before latest update, help

    I noticed this at one point and what I did, which worked, was to delete the mailbox from my iPad, then reinstall it.  Give it a try and see if it helps you as well.

  • HT1212 will restoring my ipod touch this way delete everyhing i have on my ipod

    because i don't want to lose my apps

    Yes, it will. You can re-download all purchased items from iTunes or restore from an existing backup you have made.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Developing JSP using SQLJ

    Does anyone know how to develop JSP using SQLJ? This chapter is not availabe in the developer's guide. And which one is a better solution, JSP + BC4J or SQLJ?

    I would stick with the JDK 1.1.8 in JDeveloper 3.0. SQLJ and JDBC do not yet support JDK 1.2 (they will in Oracle 8.1.6 and JDeveloper 3.1... not sure about OAS 4.0.9, but I would suspect so).
    Laura

  • Pass data from servlet to jsp using sendRedirect

    Hi,
    I am passing data from servlet to jsp using forward method of request dispatcher but as it doesn't change the url it is creating problems. When ever user refreshes the screen(browser refresh) it's re-loading both servlet and jsp, which i don't want to happen. I want only the jsp to be reloaded.
    Can I pass data from servlet to jsp using sendRedirect in this case. I also want to pass some values from servlet to jsp but without using query string. I want to set some attributes and send to jsp just like we do for forward method of request dispatcher.
    Is there any way i can send data using attributes(without using query string) using sendRedirect? Please let me know

    sendRedirect is meant as a true redirect. meaning
    you can use it to redirect to urls not in your
    context....with forward you couldn't pass information
    to jsps/servlets outside your own context.Actually, you can:
    getServletContext().getContext("/other").getRequestDispatcher("/path/to/servlet").forward(request, response)I think the issue here is that the OP would like to have RequestDispatcher.forward() also update the address in the client's browser. That's not possible, AFAIK. By the time the request is forwarded, the browser has already determined the URL of the servlet, and the only I know of way to have the browser change the URL to the forwarded Servlet/JSP is to send a Location: header (i.e. sendRedirect()). Remember that server-side dispatching is transparent to the client. Maybe there's some tricky stuff you can do with JavaScript to change the address in the address bar without reloading the page?
    Brian

  • HT4972 I replaced the computer I originally used to synch my iPhone. I get the message stating that my content will be erased, even though this is the computer I now synch with. Is there a way to make the update recognize the new computer?

    I replaced the computer I originally used to synch my iPhone. When trying to update to iOS5.0, I get the message stating that my content will be erased, even though this is the computer I now synch my phone with. Is there a way to make the update recognize the new computer so that my content will be kept?

    The best option is to copy your entire iTunes folder from your old computer to your new one using one of the methods described here: http://support.apple.com/kb/HT4527.  This will allow iTunes on your new computer to recognize and sync with your phone without deleting content.  You will also need to copy over any other synced data not in your iTunes library such as photos synced to your phone, calendars and contacts.
    If you can't do this, these articles will help you start syncing with your new computer with minimal or no data loss:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive
    Recovering your iTunes library from your iPod or iOS device

  • MY new Ipod Nano does not hold a charge.  I use it mostly as a watch, perhaps look at it 5 or 6 times in 8 hours, and leave it in sleep mode the rest of the time.  I drains to the red line in less than 2 days.  My husband's nano will last a week this way.

    MY new Ipod Nano does not hold a charge.  I use it mostly as a watch, perhaps look at it 5 or 6 times in 8 hours, and leave it in sleep mode the rest of the time.  I drains to the red line in less than 2 days.  My husband's nano will last a week this way.  I thought it drained because of looking at photos, so I quit looking at them and it made no difference.  Am I doing something incorrectly to cause this short battery life?

    You are still under warranty if your iPod is "new."  Take full advantage of it by either calling iPod tech support, Apple Care if you have it or take it in to an Apple store or an AASP.  Whichever is more convenient for you.

  • HT2589 We have purchase 5 apple minis and would like them all on one account.  That way we can monitor the use of these units.  they will be used strickly for a business application.  can I use one account in itunes or must i have multiple.

    We have purchased 5 apple minis and would like them all on one account, that way we can monitor the use of these units.  They will be used strickly for a business application.  Can I use one account in itunes or must i have multiple.

    Not going to happen the way you want it to.
    When you add a gift card balance to the Apple ID, it's available for the Apple ID.
    Probably best to create unique Apple ID's for each... this will also make things easier in the future as purchases are eternally tied to the Apple ID they were purchased with.

  • My childs ipod touch is missing, someone tried to reset the password around the same time it "Vanished" is there a way to track what WIFI network was used to make this attempt?    We think it was taken at her school and any small info would help!

    Trying to find my daughters ipod touch,  the last we saw it was around thursday and strangly I recieved an email that the apple id was attempting to be changed and or reset...this was not by me or my wife and my daughter is 7 so i dont think it was her...we think it may have been taken at her school but not sure so what i was wondering was is there a way to pinpiont the wifi network that was used to make this attempt??      If it is then it will be a huge help,              This was a gift from "santa" and finding would really make us happy!!    Thanks for any and all help!!

    Trying to find my daughters ipod touch,  the last we saw it was around thursday and strangly I recieved an email that the apple id was attempting to be changed and or reset...this was not by me or my wife and my daughter is 7 so i dont think it was her...we think it may have been taken at her school but not sure so what i was wondering was is there a way to pinpiont the wifi network that was used to make this attempt??      If it is then it will be a huge help,              This was a gift from "santa" and finding would really make us happy!!    Thanks for any and all help!!

  • HT4914 I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    Is/was failing or has failed?
    If the old computer still runs one of these methods may be best.
    Method 1
    Backup the library with this User Tip.
    Restore the backup to your new computer using the same tool used to back it up.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    I don't have personal experience with iTunes Match, but in principle you should be able to download all the tracks currently registered to your iTunes Match account. This isn't quite the same as restoring your previous library exactly as it was. There is always the potential for iTunes match to provide the wrong version of a song and could be content such as movies, podcasts, audiobooks etc. that would have been excluded.
    tt2

  • I have downloaded the HD version of a movie from itunes, but when I sync it to my iPad 2 it will not play. It appears that it is on the iPad, but it will not play. Is this because it is HD, and if so is there a way to change it from being HD? Thanks

    I have downloaded the HD version of a movie from itunes, but when I sync it to my iPad 2 it will not play. It appears that it is on the iPad, but it will not play. Is this because it is HD, and if so is there a way to change it from being HD? Thanks

    I'm having a similar problem ... just used my iPad 2 to purchase the Bourne trilogy and it downloaded fine but I did not try to play it right away.  Then I plugged the iPad into the computer and it downloaded the SD versions of the movie and I used iTunes to sync my movies.  Then I tried to play it and it said it could not open the movie.  I then did a full iPad restore and did a fresh sync and now I get the Cannot Opne pop up.  Did you ever find an answer to your question?

Maybe you are looking for

  • How do I set up a password on my WRT54GS?

    I have been using my wireless router for a couple of years and never bothered to set up a password... When I am away from home and try to use either my lap top or IPod Touch to connect to a wireless network, I notice that I need to enter a password t

  • Problem with back button in alv o/p

    Hi guys, I am using Grid display to display a data. but when i am clicking on back button on o/p the o/p is displaying duplicate records for the first o/p. i,e it is displaying multiple records, again clicking on back it displaying extended o/p with

  • Colors in pdf files changed when I open those files in the iPad.

    I usually use iPad and Goodreader for reading journal articles. There is one big problem reading the papers using iPad because colors in pdf files looks abnormal. When I use my labtop and desktop, I can see whole colors in the pdf files, so I can see

  • 2 silly questions what is boot camp and do I need it? & How to transfer PC

    Okay, I've just ordered my first mac it's a 17" 1.83 refurb iMac, I've noticed a lot of stuff about boot camp, what is it? Does it allow me to transfer my old pc files to my Imac? The only files I will be transfering are pictures and music files can

  • I upgraded to IOS 5.1 and the phone doesn't work right

    I upgraded my phone to IOS 5.1 and the phone functionality doesn't work right.  If I make a call, once connected I go back to the main menu and can't get to the phone controls (including the ones to hang up).  If I receive a call, the wheel comes up,