You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Johnson <pe...@wizardslair.net> on 2005/03/02 22:57:05 UTC

5.5.7 Filter Issue

Hi all,

I am including another context's servlet output however the filter that 
should be applied isn't.

e.g. seems to be doing

           context1             context2
   |------------------------------|   |--------------|
--> Filter --> Servlet --> Servlet ----|
<------------------------------------------------------|

rather than

           context1             context2
   |------------------------------|   |--------------|
--> Filter --> Servlet --> Servlet ----|
<---Filter <-- Servlet <--------------------|

Any ideas?

PJ

                             

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: 5.5.7 Filter Issue

Posted by Peter Johnson <pe...@wizardslair.net>.
After some further logging within the filter it would appear that the 
following is happening


         context1             context2
 |------------------------------|   |--------------|
--> Filter --> Servlet --> Servlet ----|
  |---Filter <-- Servlet <-------------------|
  |->Filter --> Servlet --> Servlet ---|
<--- Filter <-- Servlet <-------------------|

However, after the response if filtered the first time it isn't applied 
again on the second round so hence it would appear not to be being applied.

Can't see why it is doing a second round though.

Peter Johnson wrote:

> Correction it is doing
>
>          context1             context2
>  |------------------------------|   |--------------|
> --> Filter --> Servlet --> Servlet ----|
> <------------------ Servlet <--------------------|
>
> Peter Johnson wrote:
>
>> Hi all,
>>
>> I am including another context's servlet output however the filter 
>> that should be applied isn't.
>>
>> e.g. seems to be doing
>>
>>           context1             context2
>>   |------------------------------|   |--------------|
>> --> Filter --> Servlet --> Servlet ----|
>> <------------------------------------------------------|
>>
>> rather than
>>
>>           context1             context2
>>   |------------------------------|   |--------------|
>> --> Filter --> Servlet --> Servlet ----|
>> <---Filter <-- Servlet <--------------------|
>>
>> Any ideas?
>>
>> PJ
>>
>>                            
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: 5.5.7 Filter Issue

Posted by Peter Johnson <pe...@wizardslair.net>.
Correction it is doing

          context1             context2
  |------------------------------|   |--------------|
--> Filter --> Servlet --> Servlet ----|
<------------------ Servlet <--------------------|

Peter Johnson wrote:

> Hi all,
>
> I am including another context's servlet output however the filter 
> that should be applied isn't.
>
> e.g. seems to be doing
>
>           context1             context2
>   |------------------------------|   |--------------|
> --> Filter --> Servlet --> Servlet ----|
> <------------------------------------------------------|
>
> rather than
>
>           context1             context2
>   |------------------------------|   |--------------|
> --> Filter --> Servlet --> Servlet ----|
> <---Filter <-- Servlet <--------------------|
>
> Any ideas?
>
> PJ
>
>                            
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org