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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -