Re: Embedded Tomcat - programatically adding context-params

2010-06-15 Thread Afkham Azeez
Sorted this out. You need to set the params after the context is added to the host. I was setting it before adding it to the host. Thanks Azeez On Tue, Jun 15, 2010 at 8:07 PM, Afkham Azeez wrote: > Hi folks, > We are using Embedded Tomcat in our products. Once we create a new context, > we ne

Embedded Tomcat - programatically adding context-params

2010-06-15 Thread Afkham Azeez
Hi folks, We are using Embedded Tomcat in our products. Once we create a new context, we need to set some context parameters. How can this be done? I've tried using org.apache.catalina.Context#addParameter, but from within a JSP, when I try to access this parameter as application.getInitParameter(