// that is all, or else there will be a repeat of that business that occurred in Hamelin.
String requestURL = req.getServletPath();
// SaveLicense.do or DisplayLicense.do or logout.do
if (!(requestURL.matches("^/\\S+License.do$") || requestURL.matches("^/logout.do$"))) {
// get back there and pay me!
req.getRequestDispatcher(res.encodeURL("/DisplayLicense.do")).forward(req, res);
}
}
}
chain.doFilter(req, res);
} // end doFilter()