Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8283325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:41:48+00:00 2026-06-08T10:41:48+00:00

I have a problem in updating my Oracle Database using NetBeans. I enter an

  • 0

I have a problem in updating my Oracle Database using NetBeans.
I enter an Email Address in a form on a jsp page and redirect this page to servlet in which database code is written. When form is submitted by entering Email Address it doesn’t get stored in the database and also doesn’t print “updated” as written in the servlet code.
I have created a table in the database named “email” with a field address of type varchar(40).
Below is my servlet code:

 protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
    PrintWriter out=response.getWriter();
   String mail=request.getParameter("t1");
   try
   {
        Class.forName("oracle.jdbc.driver.OracleDriver");
       Connection con=null;
       try
       {
           con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ankush","abcdefg");
           PreparedStatement stmt=con.prepareStatement("insert into email values(?)");
           stmt.setString(1,mail);
           stmt.executeUpdate();
           out.println("updated");
        }
       finally
       {
          con.close();
       }
   }
   catch(SQLException e)
   {

   }
   catch(Exception e1)
   {

   }
}
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:41:49+00:00Added an answer on June 8, 2026 at 10:41 am

    Exapnd the project node right click on librarys and add

    ojdbc14_g.jar

    class name is:
    oracle.jdbc.driver.OracleDriver

    url is
    jdbc:oracle:thin:@[:<1521>]:

    You can find ojdbc14_g.jar somewhere inside the installation folder of your oracle db

    or try http://wiki.netbeans.org/DatabasesAndDrivers#section-DatabasesAndDrivers-OracleDriverForTheOracle10.xDatabase

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with updating a database record using EJB and JPA. Persistence provider:
I have problem with my query on C, I’m using the oci8 driver. This
I have a problem with Updating Form Element Look and Feel under Update Panel
I have a problem updating the layout of my listbox using MVVM with Prism
I'm using Doctrine 2 ORM and I have this problem. I have three Entities,
hey , I have a problem with updating a record using a domain service,
I am using EF 4.1 code first and have problem updating Order entity, when
I am having problem with updating data to database. I have a simple many-to-one
Have a problem with updating an existing record of my DB. In my view
i have a problem with updating my textview. i am making a c2dm app.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.