You appear to be missing a quote in your input field around the name attribute:
With regards to debugging, Put some extra statements on your JSP page to
test certain values.
I would recommend checking
- the request parameter being passed in (is the form value being submitted)
- the value in the bean (is the value being passed into the bean)
- the sesion id (are we maintaining the session)
On page 2, this code will see that the parameter is passing through correctly
And then check if your bean is being populated.
On page 3, the parameter should be null, the bean username should be populated, and the sessionid should be the same as the previous one.