Originally posted by Timothy Sam:
Hmmm... Isn't a Filter called before the servlet? How can I make the filter forward to that controller ONLY if the servlet is finished with its part(e.g. doing database stuff)?
A filter is a sort of a servlet. In fact if you look at the doFilter() method it has a copy of the ServletRequest and ServletResponse objects, which you could use for your control. And also it can be mapped to a url in a much similar way as you map servlets.
and you could use the filter for security as well.