cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gintare Ragaisiene <gintare.ragaisi...@gmail.com>
Subject Add custom servlet on cocoon 2.2.0 startup
Date Tue, 24 Nov 2009 12:50:38 GMT
Hi,

   I need to initialize a servlet like

public class TestServlet extends HttpServlet{

    @Override
    public void init(ServletConfig config) throws ServletException {
        super.init(config);

        System.out.println("TestServlet");
    }

}

on cocoon 2.2 startup.

Some servlets is set up in cocoon_home/target/rct/webapp/WEB-INF/web.xml. If
I edit that web.xml to add servlet, after server restart input disappear.

Thanks,
Gintare

Mime
View raw message