• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Filtering (outgoing Response)

 
Sean Hetfield
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder when a filter applied between two servlets (servlet A forwrds to server B), at the time of come back, is the outgoing response going through filter again or because forwarding happened between the two servlets, the response goes directly back to the client from servlet B (and not going through filter again)?

Thanks

Sean
 
Sri Kan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Response goes from ServletB to client.

When you apply a filter you can modify/wrap request or response. After that servlet is processed and from there to client

[ April 20, 2007: Message edited by: Sri Kan ]
[ April 20, 2007: Message edited by: Sri Kan ]
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a lot has been about this in hfsj... "D
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic