Get http variable JSF

2019-07-20 14:34发布

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.

标签: java http jsf
1条回答
冷血范
2楼-- · 2019-07-20 15:19

May be this will help you,

Map requestMap = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
String para1 = (String) requestMap.get("para1");
查看更多
登录 后发表回答