java - Use of servletcontext? -


i created 1 web application want store past logged user name list comparing new users going login. how using servletcontext ? or there other way?

in jsf, application scoped managed beans stored in servletcontext. so, create , declare application scoped managed bean , put list in there.

however, there better ways particular functional requirement yet unclear in question. @ least, implementing httpsessionlistener or httpsessionbindinglistener better idea since logins coupled httpsession.

here several examples:


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -