Created
February 9, 2013 09:07
-
-
Save rvazquezglez/4744660 to your computer and use it in GitHub Desktop.
Acceder a las variables de sesión usando struts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Es mejor usar ActionContext | |
Map session = ActionContext.getContext().getSession(); | |
session.put("logined","true"); | |
session.put("context", new Date()); | |
return SUCCESS; | |
Map session = ActionContext.getContext().getSession(); | |
session.remove("logined"); | |
session.remove("context"); | |
return SUCCESS; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment