beeky@bellatlantic.net wrote:
>
> I hope the subject says it all but here's a reiteration. The sample
> web.xml in TOMCAT_HOME/doc/appdev shows how to set and access
> <context-params>. The current docs on ServletContext do not seem to
> have a method to get context params. <init-params> on a per servlet
> basis work as described but I have several values that all servlets must
> access.
e.g. in TC3.x core/BaseInterceptor.java implementation
public void contextInit(Context ctx) throws TomcatException
{
...
String className = ctx.getInitParameter("RoleMapper");
...
}
Would get the following param from webapps/xx/WEB-INF/web.xml
<context-param>
<param-name>RoleMapper</param-name>
<param-value>
com.teamware.phoenix.security.auth.TomcatFixedRoleMapper
</param-value>
</context-param>
Antony
|