Skip to content

Instantly share code, notes, and snippets.

@rvazquezglez
Created February 9, 2013 09:07
Show Gist options
  • Save rvazquezglez/4744660 to your computer and use it in GitHub Desktop.
Save rvazquezglez/4744660 to your computer and use it in GitHub Desktop.
Acceder a las variables de sesión usando struts.
// 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