Yeah by adding a servlet in front of the XML file, there is no way of knowing what user logged in by XML.
// Json
Type: Posts; User: Json
Yeah by adding a servlet in front of the XML file, there is no way of knowing what user logged in by XML.
// Json
If you have access to the HttpServletRequest object which I assume you will, try this.
request.getUserPrincipal().getName()
// Json
Hello, I take it this is something you are trying to do in your web.xml file?
Here is an example for you:
You can see here that we define a constraint for the path /path/to/secure/pages/* which...