Class Container

java.lang.Object
com.opensymphony.module.sitemesh.util.Container

public final class Container extends Object
Utility for determining the Servlet Container the application is running in. Currently supported containers: Tomcat, Resin, Orion, OC4J, WebLogic, HPAS, JRun, Websphere.

Usage:

if (Container.get() == Container.TOMCAT) { .... }