Does this help?

    public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        System.out.println("serverinfo: " + 
getServletContext().getServerInfo());
    }

Ronald.

Op dinsdag, 25 oktober 2011 13:33 schreef Bob DeRemer 
<bob.dere...@thingworx.com>:

I may need to use some Tomcat-specific code in my web app. As a result, I would like to detect [if possible] when I'm running in Tomcat, so I can invoke the logic. If anyone knows how best to do this, ideally with some sample java code, that'd be great. Thanks,
 Bob

Reply via email to