Get Request and Session Parameters and Attributes from JSF pages

前端 未结 8 1763
轮回少年
轮回少年 2020-11-29 19:23

I\'m using JSF with facelets and I need to get the request and session parameters inside the JSF page. In JSP pages I got this parameter like that: \"${requestScope.pa

8条回答
  •  一向
    一向 (楼主)
    2020-11-29 20:04

    You can get a request parameter id using the expression:

    
    
    • param—An immutable Map of the request parameters for this request, keyed by parameter name. Only the first value for each parameter name is included.
    • sessionScope—A Map of the session attributes for this request, keyed by attribute name.

    Section 5.3.1.2 of the JSF 1.0 specification defines the objects that must be resolved by the variable resolver.

提交回复
热议问题