Up to StrutsNewFaqs


 How to execute an initialization method before the first (web-)user interaction  

Answers

{{{ = #1 Using a Servlet Context Listener =


{{{ = #2 Using a plug-in =


#3 Define statics

{{{ Define statics (maybe even private with access methods)

public class yourActionServlet extends {{{ org.apache.struts.action.ActionServlet

    }  }

Then from your actions, simply:

yourActionServlet.getHashMap();


#4 Define another servlet entry in web.xml

{{{ <servlet>


Up to StrutsNewFaqs

StrutsInitialization (last edited 2009-09-20 23:32:23 by localhost)