一、
HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
String topicValue = request.getParameter("topicValue");
二、
String contentValue = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("contentValue");
JSF的托管bean获得URL参数的语句要放在托管bean的构造方法里。
原文:http://hi.baidu.com/edwardworld/blog/item/87190d952284080b7af48046.html