dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: inserting values in the oracle 9i database through a JSP page.

  1. #1
    Join Date
    Apr 2006
    Posts
    18

    inserting values in the oracle 9i database through a JSP page.

    can anyone please tell me what is the syntax for inserting values in the oracle 9i database through a JSP page.
    say i have a table named student with attributes name, age, city.

  2. #2
    Join Date
    Sep 2005
    Location
    Chicago, Il
    Posts
    144
    you will need to use JDBC (http://java.sun.com/products/jdbc/), regardless if it is in a JSP page . If you are using a full J2EE container then you are better off using a data source and entity bean (or other persistance framework like Hibernate)

  3. #3
    Join Date
    Apr 2006
    Posts
    18
    Quote Originally Posted by BigDog
    you will need to use JDBC (http://java.sun.com/products/jdbc/), regardless if it is in a JSP page . If you are using a full J2EE container then you are better off using a data source and entity bean (or other persistance framework like Hibernate)

    i am using jdbc, but i am not able to insert records. so can u please give an example.

  4. #4
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,136
    you need to show us your code so that one can tell whats going on....there could be allots of things that can go wrong...
    1. JDBC connectivity problem
    2. Wrong sql statement etc etc
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles