Can you see the session attributes? It should be possible to get it from that. More information is probably required to answer this question. I am not an expert but I do have a working system (Java/Struts/Tomcat) which does access the username after logon.
I know not of 'JDBC Realm', but if you want to know if a user is authenticated in respect of the Servlet API (ie tomcat), then look at the method getRemoteUser() at
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.