I have a JSP page used for editing some user\'s info. When a user logins to the website, I keep the information in the session, then in my edit page I try the following:
You can directly use (String)session.getAttribute("username"); inside scriptlet tag ie <% %>.