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();
((com.ibm.commerce.webcontroller.HttpControllerRequestObject) this
.getCommandContext()
.getRequest())
.getHttpRequest();
Session session =request.getSession();
No comments:
Post a Comment