title: Loading an object in ServletContext (application scope)
body: <p>I would like to put two small constant objects (one <code>TreeMap</code> and one <code>ArrayList</code>) somewhere in the <code>ServletContext</code> of a Struts2 webapp (running under Tomcat 6), such that those objects may be accessible from any JSP, through the Application Scope.</p>
  
  <p>Under Struts1, I would have used one of those startup "<code>plug-in</code>s" (defined in <code>struts-config.xml</code>). Is there an equivalent way of achieving the same result with Struts2?</p>
  
  <p>Alternatively (and maybe even better), since my webapp uses Spring configured in Tomcat with Spring's <code>ContextLoaderListener</code>, can I rely on Spring instead?  For instance by creating a bean that declares some appropriate "<code>ApplicationAware</code>" interface...</p>