chuck.caldar...@unisys.com wrote: > If you place the standard rewrite filter in the ROOT context, you can catch > any requests that do not directly map to the appropriate webapp and forward > or redirect them appropriately. >
I looked at UrlRewriteFilter and it seemed designed for forwarding within a context, not between contexts. Can it forward from ROOT to a context loaded by a Host finding the app in its appBase? I don't have Context declarations for my apps and I'd really like to maintain isolation between them. The advantage of doing context mapping in a Valve is that the context switch can happen very early in the request and before any host-specific code runs. I'm not concerned about portability--this is a very small amount of code and it's fine to rewrite it entirely if I switch containers. - Ken