Dear all, i need to build a jsf page to be mirror(synchronized with table in DB).so when i press F5=refresh,it will get to me up to date data from this table. i dont want dao,or controller. just one page has a query and show the table. Is that possible?if yes how can i made the jsf knows how to use the driver ,url of DB , and username as well as password of this DB.
If I understood your question correctly, you want to access database directly from the JSP page containing JSF components. To my knowledge it is not possible. But, you can have your database related code in your backing bean and call this code in your getter method of your JSF component, so the refresh will get the latest data.