Example usage for javax.servlet.jsp PageContext getSession

List of usage examples for javax.servlet.jsp PageContext getSession

Introduction

In this page you can find the example usage for javax.servlet.jsp PageContext getSession.

Prototype


abstract public HttpSession getSession();

Source Link

Document

The current value of the session object (an HttpSession).

Usage

From source file:org.vulpe.view.tags.Functions.java

public static HttpSession getSession(final PageContext pageContext) {
    return pageContext.getSession();
}

From source file:org.wso2.carbon.ui.taglibs.JSi18n.java

public static Locale getLocaleFromPageContext(PageContext pageContext) {
    if (pageContext.getSession().getAttribute(CarbonUIUtil.SESSION_PARAM_LOCALE) != null) {
        return CarbonUIUtil
                .toLocale(pageContext.getSession().getAttribute(CarbonUIUtil.SESSION_PARAM_LOCALE).toString());
    } else {/*from  ww  w  . java 2 s.c  o m*/
        return pageContext.getRequest().getLocale();
    }
}