Get Querystring parameters with JSF

Posted Friday, September 23, 2005 3:12 PM by Shunjie
The below code is how to get querystring parameters using JSF:

 public static Object queryString(String key)
    {
        HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
       
        return request.getParameter(key);
      
    }

There is no need to use custom components

Filed under:

Comments

# re: Get Querystring parameters with JSF

Monday, July 24, 2006 7:21 PM by Awais

should I write above code in MBean??