How to pass a parameter from one .jsp page to another using JSF -
i'm creating small project consists in creating small e-shop using jsf 2.1. problem encountering following: want display "hi, customername" customername name of customer logged in, same admin. example admin called "trevor" logs in, , app redirects page says "hi, trevor".
it goes fine first time that, using:
<h:outputformat value="welcome, {0}."> <f:param value="#{admincontroller.admin.name}" /> </h:outputformat>
but if perform operation, creating , persisting product, if @ end make user click button return loggedadminhomepage.jsp, displays "welcolme, null". how can display admin/user name every time performs operation , returns homepage?
Comments
Post a Comment