In my web application, some
servlet should be accessed while logged in, and I wrote this code.
However, this idea requires to write these code on each login-only servlet, and I think it is a bad idea.
So, I want to move that code to filter like this.
If I use this code, it'll "cut" filter chain and make redirect response.
* Is this approach "safe"? container-independent?
* Is there better way to handle this problem?