[jboss-user] [JBoss Seam] - Re: Get request parameters from current page

damianharvey do-not-reply at jboss.com
Tue Nov 6 05:16:19 EST 2007


Have a look at injecting the FacesContext and the request parameter related methods on the externalContext:

  | @In FacesContext facesContext;
  | 
  | private void hello() {
  |     Map<String, String> parameters = facesContext.getExternalContext().getRequestParameterMap();
  |     //or get the request itself
  |     HttpServletRequest request = (HttpServletRequest)facesContext.getExternalContext().getRequest();
  | }

Cheers,

Damian.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102148#4102148

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102148



More information about the jboss-user mailing list