This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Multiple Tables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Multiple Tables" Watch "Multiple Tables" New topic
Author

Multiple Tables

Sunn J
Greenhorn

Joined: Jul 27, 2001
Posts: 4
Hi Guys
I want to insert my data into two tables through Jsp.How is that possible?
Thanks
Sunn
Dmitriy Pavlyuk
Ranch Hand

Joined: Mar 25, 2001
Posts: 33
May be i don't quite understand your question, but it's not a problem.
You can execute any SQL query from JSP, and insert data in some table.
If you ask about html tables then it's doesn't different from any another markup.
Sunetra Saha
Ranch Hand

Joined: Feb 25, 2001
Posts: 77
That's right. The sql update should be exactly the same even if you hava 20 tables to insert the data to. Or is it that we are misreading your problem?
Sunn J
Greenhorn

Joined: Jul 27, 2001
Posts: 4
Thank Dmitri and Sunetra
My situation is that I have to insert Data in two tables situated in the same database(Access). So just changing the name of the table in sql query will do or something else is required.
Thanks
Sunn
 
wood burning stoves
 
subject: Multiple Tables