2

I have a question about JSF and GET http request.

How can I get a GET variable in bean managed by JSF ?

I tried to use it but nothing is in the map.

FacesContext.getCurrentInstance().getExternalContext().getRequestMap();

Thanks for your answers.

Kiva
  • 8,863
  • 16
  • 56
  • 91

1 Answers1

3

May be this will help you,

Map requestMap = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
String para1 = (String) requestMap.get("para1");
kv-prajapati
  • 90,019
  • 18
  • 141
  • 178