Forums Register Login

Using javax.servlet.Filter servlet for Post-processing

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
 

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?
+Pie Number of slices to send: Send
Please reread my first reply.
+Pie Number of slices to send: Send
And your second reply.
Good night. Drive safely. Here's a tiny ad for the road:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 5446 times.
Similar Threads
where you do the changes in struts
Chaining filter servlet
FilterChain.doFilter(), what if I don't call this in Filter.doFilter()'s impl?
Use filters to change the jsp file called by a servlet?
SMS sending functionality working when hard coded. but not working when called through a trigger
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:55:55.