How do I process GET query string URL parameters in backing bean on page load?

后端 未结 3 606
一向
一向 2020-11-22 15:26

I\'ve read how to send parameters using JSF but what if the user types their companyId in the URL when accessing their login page? For example,

3条回答
  •  礼貌的吻别
    2020-11-22 15:49

    url paramters can also be treated as request parameters so you can also access through

    FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap()
    

提交回复
热议问题