通过faces上下文和外部上下文获得request对象
FacesContext facesContext=FacesContext.getCurrentInstance();
HttpServletRequest request = (HttpServletRequest)facesContext.getExternalContext().getRequest();
获得session对象
HttpSession session=request.getSession();
String content = request.getParameter("content");