How to dispaly a value set in session scope using JSF tag
Hi Guys,is it possible to display a session value using a JSF tag? for instance i have session.setattribute("user""myname");we can easily get this value using JSTL. But is there any way to get using any JSF tag like <h:outputText>?Regards,A.
# 1
You can do this in two ways. First you could explicitly reference the session:
<h:outputText value="#{session.user}" />
Or you could use the fact that the expression evaluator looks in the session after looking in the request scope:
<h:outputText value="#{user}" />