with jsp I can easily print the logged in principal using: <%= request.getUserPrincipal() %> now I would like to do the same using JSF 2.0 + Facelets. How to do that? I have been trying for a while but no success so far.
Tx in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
<h:outputText value="#{request.getUserPrincipal()}" />should work in JSF 2.0, if you want to merely display the current user.