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
Post a Comment