Web tier: servlets, JSP, Web frameworks: any JSF plug-ins like struts?

  1. any JSF plug-ins like struts? (2 messages)

    I need to load some java objects into servlet context during app server startup. I used struts plug-in interface implemented classes in my previuos project. Is there any interface provided by JSF framework so that I can implement it and load my objects into context during app server startup? I appreciate even if there are any other ways for this. I can't extend faces servlet(i.e limitation), so I can't do it in init method of my controller servelt. Am I left with just JSF event methods?

    Threaded Messages (2)

  2. any JSF plug-ins like struts?[ Go to top ]

    Could you not create a managed bean with a scope of "application" that should do the trick
  3. any JSF plug-ins like struts?[ Go to top ]

    I should create a class that uses the ServletContextListener (so it gets the contextInitialized / contextDestroyed) and register this class as a Listener in your web.xml