无法将HttpSession解析为jsf logout
中的类型public class LogoutBean
{
public String Logout()
{
// FacesContext context = FacesContext.getCurrentInstance();
// ExternalContext ec = context.getExternalContext();
//
// final HttpServletRequest request = (HttpServletRequest)ec.getRequest();
// request.getSession( false ).invalidate();
((HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false)).invalidate();
return "login";
}
}