File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 199

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to insert multiple rows in the database within one go
 
Similar Threads
JDBC & JSP
How to use INSERT INTO ALL statement in jdbc prepared statement with beans
Adding multiple rows in database table from one JSF page in one go
jsf or ice faces
Need a sample query