• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using javax.servlet.Filter servlet for Post-processing

 
M Burke
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know how to trigger a Filter before the process enters the target servlet or JSP. But what about after the servelt or JSP has finished processing? Can I trigger a filter at that time?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no before and after filters; the filter brackets the request.

Code before the call up the filter chain executes before the servlet execution, code after executes after. Just as you'd expect.
 
M Burke
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:There is no before and after filters; the filter brackets the request.

Code before the call up the filter chain executes before the servlet execution, code after executes after. Just as you'd expect.


Thanks, Bear.

Is there a tech that will do both pre and post process filtering? I want to track the processing status in a web server app.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
M Burke wrote:Is there a tech that will do both pre and post process filtering?

Umm, filters.

Perhaps you misunderstood my response? A servlet filter executes around the servlet.
 
M Burke
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:
M Burke wrote:Is there a tech that will do both pre and post process filtering?

Umm, filters.

Perhaps you misunderstood my response? A servlet filter executes around the servlet.



Do you mean it executes before and after the servlet executes?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please reread my first reply.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And your second reply.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!