Why it is not working?

hai all,
i am new to jsp. please help me with the necessary corrections of the code given below.
<%@ page import="java.io.*, java.sql.*" %>
<%
     ResultSet rs;
     Class.forName("oracle.jdbc.driver.OracleDriver()");
     Connection Con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.x.xx:1521:new","old","new");     
     Statement st=Con.createStatement();
%>
why it is not working
Thanks in advance.
by
ramki.

I think you have to put the variables definition (rs, st, con...) in a specific place like this, i mark with (*) what i changed:
<%! (*)
ResultSet rs; (*)
Connection Con; (*)
Statement st; (*)
%> (*)
<% (*)
Class.forName("oracle.jdbc.driver.OracleDriver()");
Con=DriverManager.getConnection ("jdbc:oracle:thin:@192.168.x.xx:1521:new","old","new");
st=Con.createStatement();
%>
good luck,
javi

Similar Messages

  • Why does abode not work on my galaxy tab2

    Why does abode not work on my galaxy tab 2?

    The games dont load they just say I need to update to the latest version or say that it is not compaterble with it.

  • Why does sound not work on my Mac Air?

    Why does sound not work on my Mac Air --all setting seem okay. OSX 10.9.2 operating systyem.

    Open System Preferences > Sound > Output
    Make sure the coorect output devices is selected and the Mute button is not checked.

  • Why youtube dose not work on my macbook pro 10.6.6?

    why youtube dose not work on my macbook pro 10.6.6 ?

    Double check you have the latest version of Adobe Flash.

  • Not sure why Message is not working on my ipad.

    Not sure why message is not work on my iPad. It works find on my iPhone.

    http://support.apple.com/kb/TS2755

  • I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work for me?

    I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work for me?

    A reply to similar question (Q & As , in product page Apple Store) says:
    "...dissable the internal reader hardware from devices setup. Then plug the external usb superdrive and that's it."  Answered by Enrique T from Lima Oct  25 2013.
    If you can locate an external Apple USB 'Air" superdrive for earlier model MacBook Air, that should work. The newer one for the Air is the same as for iMac, now.
    You may be able to use other brands of external USB optical drive with your older intel-based iMac, as some of them function capably. A few should also be able to see system discs or other bootable utilities on DVD.
    Hopefully this helps.
    Good luck & happy computing!

  • Why facetime does not working with any carrier in u.s expect att although the iphone is factory unlocked

    why facetime does not working with any carrier in u.s expect att although the iphone is factory unlocked

    Facetime only works via WiFi. Are you trying to set up Facetime with a T-Mobile account?

  • Why ps3 is not working well with airport

    why ps3 does not work well wth the airport?

    If you are referring to online gaming, then PS3 like all non-apple devices uses upnp to open ports.
    Apple uses NAT-PMP to open ports.. East and West.. never the twain shall meet.
    If it is internal wireless issues.. that is different.. airport should be just like any other wireless router.
    If you tell us the issue we have more hope to help.

  • HT202853 I have many project made in move HD that are not updating to the new iMovie 10 on my new iMac.  Why is this not working as stated?  How do I get my projects back from backup after old iMac crashed?

    I have many projects made in imovie HD that are not updating to iMovie 10 on my new iMac.  Why is this not working as stated on the article HT202853?  How do I get my projects back from backup after old iMac crashed?

    According to:
    Update projects and events from previous versions of iMovie in iMovie (2014) - Apple Support
    you can update from iMovie versions 7, 8 and 9, but iMovie HD is iMovie 6.
    Maybe you can update in two steps, first from iMovie 6 to iMovie 7, 8 or 9 then to iMovie 10. 
    Geoff.

  • I re- start my ipad2 into a new one,to update into i0s7, why it is not working of loading?

    I re- start my ipad2 into a new one,to update into i0s7, why it is not working of loading? please help!!!

    The [c:set|http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html] tag is used to set a scoped attribute not request parameter. So when you write
    <sql:param value="${param.userid}" />You get null as there is no parameter named userid in the request. Try this
    <sql:param value="${userid}" />I would recommend you not to do database connectivity stuff in JSP, JSPs are the view layer of an application and they aren't supposed to be for doing business logic. Also since you are using a random userid, you might end up with multiple users with the same ID and IDs are generally supposed to be unique...

  • TS3297 I want to buy the double coins from the game subway surfers! But they told me to contact the itunes support! I don't know why it's not working.. Please help! iPhone 4ss

    I want to buy the double coins from the game subway surfers! But they told me to contact the itunes support! I don't know why it's not working.. Please help! iPhone 4ss

    These are user-to-user forums, you are not talking to Apple here. You can contact iTunes support via this page and ask them 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 probably Purchases, Billing & Redemption

  • Cant restore iphone 3g 4.2.1 it would load half way threw then say unknown error why it is not working?

    cant restore iphone it would loa half way threw then say unknown error why is it not working and its a iphone 3g 4.2.1

    What is the exact error message you're getting?

  • No earbuds work for the left side...why dis it not working?

    My sons and husbands iphones work just fine with earbuds that dont work on mine. Why is mine not working? Earbuds used to work but not anymore.

    Melinda1933 wrote:
    It couldnt be that cause they work just fine on my hisbands iphone. Im wondering if it can even be fixed! But its nothing i can fix with teouble shooting. Thanks though.
    Read my post again
    CHECK the earphone socket on YOUR iPhone
    The small round hole on top on left that is where the earphones are not working of course they work on
    another iPhone that is not the one wityh a problem
    If it is not debris it could be software  do the troubleshooting ..........

  • Why condition does not work.

    Hi Pros,
            in my bex query, there is a CKF OT hours, having a value 30.000, when I set a condition for 'OT hours = 30.000', but get no result out. could you please tell why condition does not work.

    HI,
    please check the "Characteristic Assignment" Tab in change condition window.
    In that tab default  selection as "All Characteristic in the drill down independently" change that selection  as "Individual characteristic and Char. combinations"  and choose the particular characteristic. for ex OT hours against employee means select employee alone.
    Regards
    Sureshkumar C

  • Why Facetime is not working in United Arab Emirates?

    Why Facetime is not working in United Arab Emirates?? Even the icon for it and its setting in the phone’s setting list are not exist.. Could it be that this service is locked by our local mobile carrier or from Apple side?

    The UAE IOS devices are identified by their Serial number which has the Suffix AE. the telecoms regulator in UAE has agreed with Apple not to put facetime on UAE devices so people dont cut out the UAE telcoms providers that have not recovered their infratructure invetsments on copper and fibreoptic cabling/exchanges etc.
    You cannot change this as Apple always refrences your serial number of your device everytime it connects to itunes or the app store.  You will need a non UAE IOS device to have facetime.  how about getting Skype instaed its more widely used and in my opinion better

Maybe you are looking for

  • How can we notify the Manager

    Hi All, Can you please give me idea for the following The idea is to having, some users will enter data in Input Schedule and save it as excel. This is ok The problem here is how can we notify to the Manager that the excel is ready to review? after t

  • How to install OS X on MBP running Windows 7?

    i purchased an early 2011 MBP 13.3. it is running windows 7. i have the OS X installation discs. is there anything i can do to reinstall OS X without getting rid of windows 7? i do not particularly need windows 7, but since it is there, i might as we

  • A skype account lost - how do I regain it?

    Hello, all I used to have a skype account that I quit using a long time ago (about a year). Now, I tried to revive it but it turned out that I sadly haven't saved neither the password nor the e-mail tied to it. Could anyone tell me please what to do

  • Launching Problem - After Effects CS5

    Hello, I've a problem when i try to launch After Effects cs5 (Free trial 30 days). When it's loading, it stops and an error message says to me : After Effects (alerte) : Unknown BIB Error. invalid encoding, BRV, 0 (83 § 3) What can i do ? Thanks for

  • Word to the Aperture developers

    Since I can't find any other way to tell them: Why no Kodak RAW support? I have a lot of .dcr files that I work with and I'm not crazy about Kodak's software and the fact that they have abandoned the photographers who bought their cameras.