This is probably a silly question, but do you have a getter
and a setter on the backing bean for "empName"?
When the next page loads, so long as it accesses the same instance of the same bean (which it should do if it is a session bean), then your "empName" value should appear. e.g.
If you can run with server code debugging (easy with
Tomcat and Eclipse, possibly other IDE/AppServer combinations too) then you could place breakpoints in you bean and see if they value gets set, or if something is accidentally re-setting it. If find the combination of good logging and server debugging can really help with "simple, but highly frustrating" problems like this.