I have a log in page for users, which if the login name is valid takes user name and puts it into
a session.setAttribute(“user”, String);
the user then gets redirected a userspage.jsp.
At that page I can get the “user” using :
<% getAttribute = (String)session.getAttribute("user"); %>
the user is <%= getAttribute %>
I can easily add a suffix String alluser = user+ .html
I want to use it in <a href = “alluser” > some text </a> but obviously this would equate to literally alluser getting an can’t find alluser page. I want to use the value of alluser with a method which replaces <a href with something that allows the use of the alluser value
what other methods could I use ?