Re: getting StandardContext in Tomcat 7

2010-07-23 Thread Mark Thomas
On 23/07/2010 15:33, martin.szna...@centrum.cz wrote: > > Hello > In Tomcat 6 I was using this code to get StandardContext: > StandardEngine engine = (StandardEngine) > ServerFactory.getServer().findService("Catalina").getContainer(); > StandardContext context = (StandardContext)

getting StandardContext in Tomcat 7

2010-07-23 Thread martin.sznapka
Hello In Tomcat 6 I was using this code to get StandardContext: StandardEngine engine = (StandardEngine) ServerFactory.getServer().findService("Catalina").getContainer(); StandardContext context = (StandardContext) engine.findChild(engine.getDefaultHost()).findChild(getPortalCont

Getting StandardContext

2006-01-25 Thread Roel De Nijs
Hi, I was wondering if it's possible to programmatically get the StandardContext-object from e.g. a Servlet that's running in the container. So you can call getters like getDocType, programmatically add some mime types etc. Greetz Roel ***