@@ -0,0 +1,1736 @@
+package org.flymine.web;%0A%0A/*%0A * Copyright (C) 2002-2003 FlyMine%0A *%0A * This code may be freely distributed and modified under the%0A * terms of the GNU Lesser General Public Licence.  This should%0A * be distributed with the code.  See the LICENSE file for more%0A * information or http://www.gnu.org/copyleft/lesser.html.%0A *%0A */%0A%0Aimport java.io.InputStream;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.ServletContext;%0A%0Aimport org.apache.struts.action.ActionServlet;%0Aimport org.apache.struts.action.PlugIn;%0Aimport org.apache.struts.config.ModuleConfig;%0A%0Aimport org.flymine.web.config.WebConfig;%0A%0A%0A/**%0A * Initialiser for the FlyMine web application%0A * Anything that needs global initialisation goes here.%0A *%0A * @author Andrew Varley%0A */%0A%0Apublic class InitialiserPlugin implements PlugIn%0A%7B%0A%0A    /**%0A     * Init method called at Servlet initialisation%0A     *%0A     * @param servlet ActionServlet that is managing all the modules%0A     * in this web application%0A     * @param config ModuleConfig for the module with which this%0A     * plug-in is associated%0A     *%0A     * @throws ServletException if this %3Ccode%3EPlugIn%3C/code%3E cannot%0A     * be successfully initialized%0A     */%0A    public void init(ActionServlet servlet, ModuleConfig config)%0A        throws ServletException %7B%0A%0A        ServletContext context = servlet.getServletContext();%0A%0A        try %7B%0A            InputStream is = context.getResourceAsStream(%22/WEB-INF/webconfig-model.xml%22);%0A            WebConfig wc = WebConfig.parse(is);%0A            context.setAttribute(%22webconfig%22, wc);%0A        %7D catch (Exception e) %7B%0A            throw new ServletException(e);%0A        %7D%0A    %7D%0A%0A    /**%0A     * Destroy method called at Servlet destroy%0A     */%0A    public void destroy() %7B%0A    %7D%0A%0A%7D%0A

Add anything to application context here