File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How do I connect to database
Joined: Jun 10, 2008
Jun 12, 2008 01:13:00
In our JBoss JBpm project we are using JSF for UI's and those all are xhtml files...So how do I retrive from database and display in xhtml files.
Joined: Jun 11, 2002
Jun 12, 2008 06:04:00
When you retrieve data from a db, you get a java.sql.ResultSet. You can convert each record of that result set to a custom type, say Person, and add each person to a Collection. then use jsf dataTable to render that collection.
Bob's your uncle.
I agree. Here's the link:
subject: How do I connect to database
JSF application on Apacher web server and Tomcat
Need help in xhtml files
XHTML inetraction with database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015