you can put the username in a session like this:
<%
String username2 = request.getParameter( "username" );
session.setAttribute( "user", username2 );
%>
you can get the value in another page as shown below:
<%= session.getAttribute( "user" ) %>
you can use the value in a finder method in another page as shown below
<% p=rsl.findEmlpoyeeNameandId(session.getAttribute("use").toString()); %>
where findEmlpoyeeNameandId() is a finder method in session bean, p is an object of a helper class