If we are updating a category, and certain properties are
changed (e.g., visibility, its parent), then we need to
update all child entries with the values of these
"inherited" properties.
Overview
This filter:
Does the database and connection handling for every request:
Opens a connection and starts a transaction
Allows the request to be processed normally
If there is an exception, rolls back the transaction, otherwise
commits the transaction
Closes the connection
Checks if the request requires login.
There are two cases to consider for the behavior of this method:
If the application was entered from the login page, this action
action causes a redirect to the home page, to remove the jsessionid
from the URL.