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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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