Posting complete code.
1) Index page accepts user name and invokes AuctionServlet.
2) Servlet looks up the stateful session bean with ServiceLocator. It sets 'User' instance variable of this session bean (with entered user name).
3) User redirected to another JSP informing that registration is successful and asked to click next.
4) On click of next, AuctionUserServlet is invoked.
5) AuctionUserServlet looks up the same session bean and displays the logged in user's name by accessing the User instance variable ---------- Getting null user here.....