Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Initiaze Data on Startup of a JSF application

843844Feb 11 2008 — edited Feb 12 2008
Hi,

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 11 2008
Added on Feb 11 2008
11 comments
624 views