wood burning stoves*
The moose likes JSF and the fly likes How to insert multiple rows in the database within one go Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to insert multiple rows in the database within one go " Watch "How to insert multiple rows in the database within one go " New topic
Author

How to insert multiple rows in the database within one go

Adnan Gondal
Ranch Hand

Joined: Apr 30, 2011
Posts: 32
Can we add multiple rows in the database table from JSF page in one go?

Actually i want to make an attendance page, i want to take attendance of all employees in one JSF page in one go that is when user will press save button then all employees attendance will get save in database.

Is it possible to achieve this using managed bean and JSF page? Kindly give me some idea that how it can be achieved?

I've done insert,view,update and delete for single row.
Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 200

Using any of the JPA implementations you could do it easily.

I personally like EclipseLink.
Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105
I think already you asked same question. So avoid duplicate question.

See your private message.


Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
 
wood burning stoves
 
subject: How to insert multiple rows in the database within one go
 
Similar Threads
Need a sample query
Adding multiple rows in database table from one JSF page in one go
JDBC & JSP
How to use INSERT INTO ALL statement in jdbc prepared statement with beans
jsf or ice faces