Friday, September 4, 2015

Get session value from CommandContext in Websphere Commerce

The below code which we can use to get the session information from CommandContext in Websphere Commerce.


HttpServletRequest request =
((com.ibm.commerce.webcontroller.HttpControllerRequestObject) this
.getCommandContext()
.getRequest())
.getHttpRequest();

Session session =request.getSession();

No comments:

Post a Comment