I have a basic site with a login page, a new user registration, a welcome page, and an edit info page.
After logging in, a user gets a page with this:
The username bean is set on a login action
On that same page there is an edit profile link. When the user clicks that link, I need to send him to that page, and I would like that same welcome message to be available.
I have tried just copying and pasting the above to this subsequent page, but I get this: javax.servlet.jsp.JspException: Cannot find bean username in any scope
I have tried setting the scope attribute to "session" on both pages, as well as setting the login action-mapping to session, but it has not worked either. I thought that would be the solution, but apparently not.
The reason I need to do this is because on this edit profile page, I need to tell the
java code what the username is, so it can change the database with the new input info based on whatever user is logged in
Here are what i think are the relevant
jsp and java code:
LoginSuccess.jsp
profile.jsp
loginAction.java
ChangeProfileAction.java