This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF and DB2 interaction 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 "JSF and DB2 interaction" Watch "JSF and DB2 interaction" New topic

JSF and DB2 interaction

Ayub ali khan
Ranch Hand

Joined: Oct 20, 2005
Posts: 380

Can any one point me to a sample example showing a database interaction with JSF application.

Best Regards


SCEA part I,TOGAF Foundation
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
It's fully transparent for the JSF. You can put the plain JDBC commands in the backing bean or even use Hibernate. To pass the data between the JSF application and the database, it's a good practice to use DTO's - Data Transfer Objects. Basic example:



[ October 10, 2006: Message edited by: Bauke Scholtz ]
Ayub ali khan
Ranch Hand

Joined: Oct 20, 2005
Posts: 380
Thanks for your tips Bauke !!

I understood your concept.

Best Regards
I agree. Here's the link:
subject: JSF and DB2 interaction
Similar Threads
What is the difference between JSP and JSF ?
Using JQuery JSF components together
Here is a tough one. How do you go about displaying 3D images?
Spring+ hibernate or JSF+EJB3