in MCV 2, if a user goes to a page (types the link) directly, the controller page will not be used. so how can the loging and security be performed?
how to force every direct page access to go through a controller page first?
I do need users to to access the web pages directly but want them to be routed through a controller.
Filters and putting JSPs in WEB-INF will not allow to do that. and filters will not allow Google search engine too?
I do want calculations/logging to be made for every page that is to be accessed and at the same time want users to go to a page directly , and need no fuss for search engines.
You can always add filter which will catch every request.
here is Apache Shiro example:
Notice that url-pattern matches everything