• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

retrieve data from database using jsf

 
asmaa kellal
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic