Initiaze Data on Startup of a JSF application
843844Feb 11 2008 — edited Feb 12 2008Hi,
I am very new to JSF and am developing an app in JSF. When the first page of my JSF app is loaded, I am needing to load data from a database and put it in the session. I realize that unlike other web frameworks I cannot call a command class in JSF, all I can do in the navigation is navigate to JSP/JSF pages. What is the best way to call a method on a bean once the application is up? So, from an index.jsp page, I would like to call a bean and invoke a method on a bean. Is there a way to do that?
Thanks in advance for the help.