aspose file tools*
The moose likes JSF and the fly likes retrieve data from database using jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "retrieve data from database using jsf" Watch "retrieve data from database using jsf" New topic
Author

retrieve data from database using jsf

asmaa kellal
Greenhorn

Joined: May 22, 2011
Posts: 18
Hello
I want an example of source code to retrieve data from database
i have a database (oracle) name as db1 it's contain table 'author' composed of three columns idauthor(primary key),, name ,and city

I want after enter value in textbox according idauthor i retrieve name ,and city
can you help me please
thanks
Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 200

Doing a call to the database in a JSF bean isn't any different from doing it in any other framework. Just use the same ODBC or Persistence you're used to.
asmaa kellal
Greenhorn

Joined: May 22, 2011
Posts: 18

I used jsp
here is my code


question how to use bean to retrieve data from database or how we can get "v" (enter value)
and show only the corresponding elements (using jsf)
Give me an example of code please
thanks

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retrieve data from database using jsf