i have a jsp page which takes in the details from the user like the name, age, gender,etc.
how do i insert data for more then 1 user into the database at the same time i.e just by a single click.???
i'm not using servlet.
i think i was not quiet clear when i posted the question.
well i'm doing a project on flight reservation. what i want to ask was that when the user login he is able to book ticket for more den 1 person.
so i have provided textboxes to add the relevant info. about more people i.e if he is to book two tickets he needs to enter the data i.e name age gender for two people.
At Backend(oracle 10g XE) i want to add this data to the database.. but unable to do it.
What does "unable to do it" mean, exactly? What does your code currently do? And as Bear said, a servlet is the way to handle a form submission like this.
Ping & DNS - updated with new look and Ping home screen widget
Joined: Dec 24, 2012
unable to do it means that i'm unable to add the data to database...
my code accepts the data or rather insert the data just for one person into the database ... but not for more then one person.
Yes taking his advice i'm using scriplets..
i'm new to jsp.
Any help will be useful. please.
Joined: Mar 22, 2005
I don't think we'll be able to give any more advice without seeing the relevant code excerpts (that get the data from the form submission and store it to the DB).