Hello
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.
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 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).
Mayura Hayat wrote:insert the data just for one person into the database ... but not for more then one person.
If you are able to successfully insert one record, then one possible deduction I can make is that you are using request.getParameter() for reading multiple values.
hey thank you all especially swastik... it worked.. i was struggling with this thing for a long time.
data successfully entered into the database ... :) ohhh!! that's Christmas!!
Thank you once again all.
and i'm sorry for the inconvenience caused.
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!
Free, earth friendly heat - from the CodeRanch trailboss