Hi -
I have the following piece of code running in Tomcat 5.0.2x
public class ContextValve extends ValveBase
{
static ThreadLocal testContext = new ThreadLocal();
public void invoke(Request request, Response response,
ValveContext context) throws IOException, ServletException
{
testContext.set(request.getContext());
context.invokeNext(request, response);
}
}
Seems to work properly on Tomcat 5.0.2x, but when compile it and run it
on 4.1.30, the returned context is always null. Any ideas on why this
is happening? I just need to get a hold of the context on every
request...
Thanks,
Monika