Christopher Schultz wrote:
Yes, I know, shame on me. It is mentioned as a limitation in the sample
filter code however. For the real filter this one comes from, I know
the application that follows, so I know I can afford to do this.
>
> Note that your strategy is the same as my original suggestion to the OP.
>
I know that too.
It's just that you evidently are a much better Java and Tomcat
programmer than many of us, and sometimes your responses seem to be
overly concise for guys like me. So I tried an explanation for the masses.
I am very pleased and proud by the way that my explanation elicited only
the two remarks above, and was not shown down infamously.
;-)
After making that filter, I thought that it would have been more elegant
to check if the header requested by getHeader() was one I added, return
it in that case, and otherwise just call the getHeader() method of the
underlying HttpRequest object. But considering it was my first filter,
and that it worked, I was just too lazy and scared to go change it again.
André
---------------------------------------------------------------------
To start a new topic, e-mail:
users@...
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...