Hello,

I'd like to create a filter very, very early in the processing pipeline.
I'm running tomcat 5.5.23 with jre 1.5.0. If a request comes in looking
like this:

POST /path;jsessionid=xxxxxxxx HTTP/1.1
cookie: JSESSIONID=xxxxxxxx
.....

a=b&e=f


I'd like to manipulate this request before the jsessionid has been stripped
in the first line. I even want to preserve the order of the values in the
content body.

I've been playing with servlet filters, but they just seem to be called too
late. Valves also looked interesting, but they appear special because they
can be attached to a wider scope of elements, like hosts and engines. When
I attach the RequestDumperValve to my Catalina engine the 'jsession' has
already been stripped.

Does tomcat allow a filter, valve, or whatever to operate at a level I
need?

I know it runs counter to a lot of the principles behind J2EE servers.

Thanks,

vitale

Reply via email to