Get Request and Session Parameters and Attributes from JSF pages

前端 未结 8 1730
轮回少年
轮回少年 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 like this:

    #{requestScope["paramName"]} ,#{sessionScope["paramName"]}
    

    Because requestScope or sessionScope is a Map object.

    0 讨论(0)
  • 2020-11-29 20:05

    In the bean you can use session.getAttribute("attributeName");

    0 讨论(0)
提交回复
热议问题