0 Replies Latest reply on Jun 5, 2010 4:09 PM by nathan dennis

    Retrieving the Page Request String Before it is rendered

    nathan dennis Expert

      Without getting into the complex details of why i would like this. I would like to be able to have access to the page request string before the page is rendered (not before any interceptors).

      i thought this would be in


      but apparently its not because i printed the keys with something like

             Map<String, String[]> request = FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderValuesMap();
                Iterator iterator = request.keySet().iterator();  
               while (iterator.hasNext()) {  
                  String key = iterator.next().toString();  
                  String value = request.get(key).toString();  
                  System.out.println(key + " " + value);  

      or something like that. the referer key was close... but that is the page the request came from not where we are going.
      can anyone give me a hint as to where to look? help would be greatly appreciated.