Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: by pressing single submit button send data to database as well direct to another page

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default by pressing single submit button send data to database as well direct to another page

    By pressing one single submit button, I want to insert data to oracle database as well to direct to another jsp page i.e. when I press the submit button by entering data in the text boxes the data should be inserted to the database and at the same time I should be rendered to another jsp page. How can I do it?


  2. #2
    Junior Member
    Join Date
    Jan 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: by pressing single submit button send data to database as well direct to another page

    just use onclick with 2 functions on the button..

    onclick="first();second();"

Similar Threads

  1. Notepad is opening on click of submit instead navigating to other page
    By pb60705 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 10th, 2011, 07:23 AM
  2. Replies: 1
    Last Post: August 12th, 2011, 11:09 AM
  3. Replies: 3
    Last Post: April 11th, 2011, 10:51 PM
  4. unable to go to next page...while clicking submit button
    By javaking in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: April 29th, 2010, 03:55 AM
  5. Replies: 0
    Last Post: April 15th, 2010, 06:13 AM

Tags for this Thread